/* The homepage introduces existing consulting services and keeps actions clear. */
.home-hero {
  width: min(100%, 1440px);
  min-height: min(690px, calc(100vh - var(--header)));
  margin: 0 auto;
  padding: 60px clamp(24px, 6vw, 88px) 72px;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 64px);
}

.home-copy { min-width: 0; }
.home-copy .home-eyebrow {
  margin: 0 0 20px;
  color: #53658b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.home-copy h1 {
  margin: 0 0 24px;
  color: #182145;
  font-size: clamp(38px, 3.5vw, 56px);
  line-height: 1.14;
  letter-spacing: -.05em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.home-copy > .home-lead {
  max-width: 34em;
  color: #4c5870;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.home-actions { flex-wrap: wrap; margin-top: 32px; }
.home-actions .original-button { width: min(250px, 100%); min-height: 56px; padding: 14px 22px; font-size: 16px; }
.home-about-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 12px;
  color: #20398f;
  font-weight: 700;
}
.home-about-link:focus-visible, .home-motion-toggle:focus-visible,
.home-service-card:focus-visible, .home-service-help:focus-visible {
  outline: 3px solid #20398f;
  outline-offset: 4px;
}
.home-motion { position: relative; height: min(510px, 42vw); min-width: 0; }
.home-motion-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #cbd3e7;
  border-radius: 12px;
  background: #fff;
  color: #20345d;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.home-motion-toggle[hidden] { display: none; }
.home-motion-status { position: absolute; right: 8px; bottom: 62px; max-width: 24em; color: #273d68; font-size: 14px; }

.home-services {
  padding: clamp(56px, 7vw, 96px) clamp(24px, 6vw, 88px);
  background: #f5f7fc;
}
.home-services-inner { max-width: 1264px; margin: 0 auto; }
.home-services-head { max-width: 650px; margin-bottom: 32px; }
.home-services-head .home-eyebrow { margin: 0 0 12px; color: #53658b; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.home-services-head h2 { margin: 0 0 10px; color: #182145; font-size: clamp(30px, 3vw, 42px); line-height: 1.22; letter-spacing: -.035em; }
.home-services-head > p:last-child { margin: 0; color: #536077; font-size: 16px; line-height: 1.65; }
.home-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-service-card {
  display: flex;
  min-width: 0;
  min-height: 250px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid #dbe2f0;
  border-radius: 20px;
  background: #fff;
  color: #182145;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.home-service-card:hover { border-color: #9baad1; box-shadow: 0 12px 28px rgba(25, 48, 105, .09); transform: translateY(-3px); }
.home-service-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.home-service-icon { display: grid; width: 58px; height: 58px; flex: 0 0 58px; place-items: center; border-radius: 16px; background: #edf1fb; }
.home-service-icon img { width: 38px; height: 38px; object-fit: contain; }
.home-service-number { color: #66738f; font-size: 13px; font-weight: 700; }
.home-service-card h3 { margin: 24px 0 6px; color: #20398f; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.home-service-card p { margin: 0 0 20px; color: #505c73; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.home-service-action { display: inline-flex; min-height: 48px; align-items: center; gap: 8px; margin-top: auto; color: #20398f; font-size: 15px; font-weight: 800; }
.home-services-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 24px; color: #505c73; }
.home-service-help { display: inline-flex; min-height: 48px; align-items: center; color: #20398f; font-weight: 800; }

@media (max-width: 780px) {
  .home-hero { min-height: 0; grid-template-columns: minmax(0, 1fr); padding: 42px 24px 52px; gap: 22px; }
  .home-copy h1 { margin-bottom: 18px; font-size: clamp(36px, 9vw, 50px); }
  .home-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
  .home-actions .original-button { width: 100%; }
  .home-motion { grid-row: auto; height: min(72vw, 320px); }
  .home-service-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-service-card { min-height: 218px; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-service-card { transition: none; }
  .home-service-card:hover { transform: none; }
}
