.homepage {
  --home-blue: #0055e9;
  --home-ink: #0b1530;
  --home-border: #d7dfe9;
}

.home-main {
  width: 100%;
}

.home-hero {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
}

.home-hero-media {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 40%;
}

.home-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.home-hero::before {
  background: #fff;
  clip-path: polygon(0 0, 49% 0, 39% 100%, 0 100%);
}

.home-hero::after {
  background: linear-gradient(110deg, rgba(0, 85, 233, .09), rgba(0, 188, 235, .23));
  clip-path: polygon(47% 0, 51% 0, 41% 100%, 37% 100%);
}

.home-hero-copy {
  width: min(47%, 640px);
  padding: 48px 0 48px clamp(28px, 5vw, 72px);
}

.hero-rule,
.work-rule {
  display: block;
  width: 46px;
  height: 4px;
  background: var(--home-blue);
}

.home-hero h1 {
  margin: 20px 0 16px;
  color: var(--home-ink);
  font-size: clamp(29px, 3.1vw, 45px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.home-hero h1 span {
  color: var(--home-blue);
}

.home-hero-copy > p {
  max-width: 425px;
  font-size: 15px;
  line-height: 1.55;
}

.homepage .hero-actions {
  gap: 12px;
  margin: 24px 0 0;
}

.home-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--home-blue);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}

.home-button-primary {
  background: var(--home-blue);
  color: #fff;
}

.home-button-primary:hover {
  background: #003eb6;
  color: #fff;
}

.home-button-secondary {
  background: #fff;
  color: var(--home-ink);
}

.home-button-secondary:hover {
  background: #eaf3fc;
  color: #003eb6;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 30px clamp(28px, 5vw, 72px);
  background: #f5f7fa;
}

.service-item {
  display: grid;
  align-content: start;
  justify-items: start;
  min-width: 0;
  padding: 0 clamp(12px, 1.8vw, 26px);
  border-left: 1px solid var(--home-border);
  color: var(--home-ink);
  text-decoration: none;
}

.service-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.service-item .service-icon {
  width: 48px;
  height: 44px;
  margin-bottom: 12px;
}

.service-item strong {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.2;
}

.service-item span {
  font-size: 13px;
  line-height: 1.45;
}

.service-item:hover strong {
  color: var(--home-blue);
}

.selected-work {
  display: grid;
  grid-template-columns: minmax(160px, .7fr) minmax(0, 4fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
  padding: 54px clamp(28px, 5vw, 72px);
  background: #fff;
}

.work-intro h2,
.sectors h2,
.homepage-news h2,
.trust-copy h2 {
  color: var(--home-ink);
  font-size: clamp(25px, 2.4vw, 34px);
  letter-spacing: -.03em;
  line-height: 1.15;
}

.work-intro h2 span {
  display: block;
}

.work-empty {
  grid-column: 1 / -1;
}

.work-rule {
  width: 42px;
  height: 3px;
  margin: 15px 0;
}

.work-intro p,
.work-empty {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.work-intro > a {
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 3px;
}

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

.homepage .project-card {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 1.55;
  overflow: hidden;
  border-radius: 0;
  background: #0b1530;
  color: #fff;
  text-decoration: none;
}

.homepage .project-card::before {
  display: none;
}

.homepage .project-card::after {
  position: absolute;
  inset: 25% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .86));
  content: "";
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-title,
.project-arrow {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  font-size: 15px;
  font-weight: 700;
}

.project-card-title {
  left: 18px;
  right: 42px;
  line-height: 1.3;
}

.project-card-title::after {
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 9px;
  background: #00bceb;
  content: "";
}

.project-card-title small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
}

.project-arrow {
  right: 16px;
  font-size: 21px;
  font-weight: 400;
}

.trust-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: 44px clamp(28px, 5vw, 72px);
  background: #eaf3fc;
}

.trust-banner::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: 22%;
  background: linear-gradient(130deg, transparent 37%, rgba(0,85,233,.09) 37%, rgba(0,85,233,.09) 55%, rgba(0,188,235,.16) 55%, rgba(0,188,235,.16) 68%, transparent 68%);
  content: "";
  pointer-events: none;
}

.trust-copy,
.trust-banner .home-button {
  position: relative;
  z-index: 1;
}

.trust-copy {
  max-width: 760px;
}

.trust-copy p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
}

.sectors {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: clamp(32px, 5vw, 80px);
  padding: 58px clamp(28px, 5vw, 72px);
}

.sectors-heading .work-rule {
  margin-top: 0;
}

.sectors-heading p {
  margin-top: 10px;
  font-size: 14px;
}

.sectors-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  padding: 0;
  list-style: none;
}

.sectors-list li {
  padding: 13px 0 13px 16px;
  border-bottom: 1px solid #dce3ed;
  color: var(--home-ink);
  font-size: 14px;
  font-weight: 600;
}

.sectors-list li::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 10px 3px -15px;
  background: #0055e9;
  content: "";
}

.homepage-news {
  padding: 52px clamp(28px, 5vw, 72px);
  background: #f5f7fa;
}

.homepage-news .news-section-heading {
  margin: 0 0 26px;
}

.homepage-news .news-section-heading p,
.homepage-news .news-empty {
  margin-top: 8px;
  font-size: 14px;
}

.homepage-news .news-card-media {
  height: auto;
  aspect-ratio: 1.8;
}

.homepage-news .news-card-body {
  padding: 18px;
}

.homepage-news .news-card h2 {
  font-size: 17px;
}

@media (max-width: 1000px) {
  .service-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 28px;
  }

  .service-item:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }

  .selected-work {
    grid-template-columns: 1fr;
  }

  .work-intro h2 span {
    display: inline;
  }
}

@media (max-width: 700px) {
  .home-hero {
    display: flex;
    min-height: 0;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .home-hero-media {
    position: relative;
    inset: auto;
    z-index: auto;
    height: 240px;
  }

  .home-hero-image {
    object-position: center 42%;
  }

  .home-hero::before,
  .home-hero::after {
    display: none;
  }

  .home-hero-copy {
    width: auto;
    padding: 32px 24px 36px;
  }

  .home-hero h1 {
    font-size: clamp(29px, 7vw, 38px);
  }

  .service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 28px 24px;
    row-gap: 26px;
  }

  .service-item,
  .service-item:nth-child(4) {
    padding: 0 14px;
    border-left: 1px solid var(--home-border);
  }

  .service-item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .selected-work,
  .sectors,
  .homepage-news {
    padding: 42px 24px;
  }

  .project-cards {
    grid-template-columns: 1fr;
  }

  .homepage .project-card {
    aspect-ratio: 1.7;
  }

  .trust-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 24px;
  }

  .sectors {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sectors-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-button {
    transition: none;
  }
}
