.home-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--lime) url("../images/hero-home.webp") center / cover no-repeat;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(199, 255, 92, .08);
}

.home-hero__copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 36px), 760px);
  padding: 72px 0;
  text-align: center;
  animation: hero-enter .8s cubic-bezier(.2, .75, .25, 1) both;
}

.home-hero__eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: clamp(27px, 4vw, 51px);
  font-weight: 800;
  line-height: 1.1;
}

.home-hero h1 {
  margin: 0;
  color: #000;
  font-size: clamp(76px, 11vw, 150px);
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: .9;
}

.home-hero__tagline {
  margin: 25px 0 8px;
  color: #000;
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 900;
  line-height: 1;
}

.home-hero__jp {
  margin-bottom: 28px;
  color: #111;
  font-weight: 800;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 70px);
  text-align: center;
}

.service-item {
  color: inherit;
  text-decoration: none;
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  transition: transform .22s ease, background .22s ease;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-item:hover .service-icon {
  background: var(--blue-dark);
  transform: translateY(-5px);
}

.service-item h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.service-item p {
  color: var(--muted);
  line-height: 1.8;
}

.about-grid,
.company-grid,
.access-grid,
.recruit-intro,
.recruit-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(34px, 7vw, 90px);
}

.about-grid img,
.recruit-intro img {
  border-radius: 10px;
}

.about-copy h3,
.company-grid h3,
.access-grid h3,
.recruit-intro h3 {
  margin-bottom: 26px;
  font-size: clamp(22px, 2.3vw, 29px);
}

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

.business-grid h3 {
  margin-bottom: 26px;
  font-size: 25px;
}

.company-grid {
  align-items: start;
  gap: 30px;
}

.company-grid > * {
  min-width: 0;
}

.company-grid h3,
.access-grid h3 {
  font-size: 24px;
}

.company-details p {
  white-space: pre-line;
}

.stat-block + .stat-block {
  margin-top: 28px;
}

.stat-block h4 {
  margin-bottom: 8px;
  font-size: 20px;
}

.timeline {
  position: relative;
  min-height: 680px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  content: "";
  background: #d0d0d0;
}

.timeline li {
  position: relative;
  width: calc(50% - 20px);
  min-height: 90px;
  margin-bottom: 38px;
  padding: 15px;
  color: #7a7a7a;
  background: #fcfcfc;
  border: 1px solid #d0d0d0;
  font-size: 13px;
  line-height: 1.65;
}

.timeline li::before {
  position: absolute;
  top: 16px;
  width: 8px;
  height: 8px;
  content: "";
  background: #f05a43;
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #f05a43;
}

.timeline li::after {
  position: absolute;
  top: 19px;
  width: 20px;
  height: 1px;
  content: "";
  background: #d0d0d0;
}

.timeline li:nth-child(odd) {
  margin-right: calc(50% + 20px);
  text-align: right;
}

.timeline li:nth-child(even) {
  margin-left: calc(50% + 20px);
  text-align: left;
}

.timeline li:nth-child(odd)::before {
  right: -25px;
}

.timeline li:nth-child(odd)::after {
  right: -20px;
}

.timeline li:nth-child(even)::before {
  left: -25px;
}

.timeline li:nth-child(even)::after {
  left: -20px;
}

.timeline time {
  display: block;
  margin-bottom: 7px;
  color: #333;
  font-size: 15px;
  font-weight: 800;
}

.access-grid {
  margin-top: 70px;
  align-items: start;
  gap: 30px;
}

.map-frame {
  min-height: 350px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 10px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 350px;
  border: 0;
}

.recruit-intro {
  align-items: center;
}

.recruit-columns {
  margin-top: 54px;
  align-items: start;
  gap: 48px;
}

.recruit-columns h3 {
  font-size: 25px;
}

.home-recruit-cta {
  margin: 48px 0 0;
  text-align: center;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 54px;
  align-items: center;
}

.clients-grid img {
  width: 100%;
  mix-blend-mode: multiply;
}

.home-cta {
  position: relative;
  padding: clamp(90px, 12vw, 150px) 0;
  background: url("../images/cta.webp") center / cover no-repeat;
}

.home-cta::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, .68);
}

.home-cta__box {
  position: relative;
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px);
  border: 2px solid var(--ink);
  text-align: center;
}

.home-cta__box h2 {
  font-size: clamp(27px, 3vw, 38px);
}

.home-cta__box h3 {
  font-size: 18px;
}

@media (max-width: 800px) {
  .services,
  .about-grid,
  .business-grid,
  .company-grid,
  .access-grid,
  .recruit-intro,
  .recruit-columns {
    grid-template-columns: 1fr;
  }

  .services {
    gap: 50px;
  }

  .about-grid img,
  .recruit-intro img {
    width: 100%;
  }

  .business-grid {
    gap: 44px;
  }

  .access-grid {
    margin-top: 52px;
  }

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

@media (max-width: 600px) {
  .home-hero {
    min-height: 100svh;
    background-position: 43% center;
  }

  .home-hero h1 {
    font-size: clamp(64px, 22vw, 90px);
  }

  .home-hero__tagline {
    font-size: 28px;
  }

  .home-hero__jp {
    font-size: 13px;
  }

  .clients-grid {
    gap: 20px;
  }

  .home-cta__box {
    width: min(calc(100% - 36px), 1180px);
  }
}

@media (max-width: 800px) {
  .timeline {
    min-height: 0;
  }

  .timeline::before {
    left: 9px;
  }

  .timeline li,
  .timeline li:nth-child(odd),
  .timeline li:nth-child(even) {
    width: calc(100% - 34px);
    margin-right: 0;
    margin-bottom: 24px;
    margin-left: 34px;
    text-align: left;
  }

  .timeline li:nth-child(odd)::before,
  .timeline li:nth-child(even)::before {
    right: auto;
    left: -29px;
  }

  .timeline li:nth-child(odd)::after,
  .timeline li:nth-child(even)::after {
    right: auto;
    left: -20px;
  }
}
