:root {
  --home-ink: #17324d;
  --home-muted: #526579;
  --home-teal: #087e83;
  --home-teal-dark: #075e64;
  --home-pale: #f2f8f7;
  --home-line: #dce8e7;
  --home-coral: #d87455;
}

.logo {
  gap: 0.65rem;
  text-decoration: none;
}

.logo img {
  height: 2rem;
}

.logo-name {
  color: var(--home-ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.nav-menu {
  align-items: center;
  gap: clamp(0.7rem, 1.7vw, 1.5rem);
}

.nav-menu .nav-link {
  white-space: nowrap;
}

.nav-menu .btn,
.nav-mobile .btn {
  min-height: 2.75rem;
}

.nav-toggle {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0 4.5rem;
  background-color: #f3f8f7;
  background-image: linear-gradient(115deg, rgba(237, 247, 246, 0.96), rgba(255, 255, 255, 0.94) 67%);
}

.home-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background-image: radial-gradient(rgba(8, 126, 131, 0.13) 1px, transparent 1px);
  background-size: 18px 18px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 65%);
  pointer-events: none;
}

.home-hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.home-eyebrow {
  margin-bottom: 0.8rem;
  color: var(--home-teal);
  font-size: 0.72rem;
  font-weight: 800;
}

.home-hero h1 {
  max-width: 12em;
  margin: 0 0 1.2rem;
  color: var(--home-ink);
  font-size: 2.4rem;
  line-height: 1.42;
}

.home-hero__lead {
  max-width: 37rem;
  margin-bottom: 1.8rem;
  color: var(--home-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.home-hero__actions,
.home-account__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-hero__actions .btn,
.home-account__actions .btn {
  min-height: 3rem;
}

.home-hero .btn-primary,
.home-account .btn-primary {
  border-color: var(--home-teal);
  background-color: var(--home-teal);
}

.home-hero .btn-primary:hover,
.home-account .btn-primary:hover {
  border-color: var(--home-teal-dark);
  background-color: var(--home-teal-dark);
}

.home-hero .btn-outline,
.home-account .btn-outline {
  border-color: #aec8c7;
  color: var(--home-ink);
}

.home-hero .btn-outline:hover,
.home-account .btn-outline:hover {
  border-color: var(--home-teal);
  color: var(--home-teal-dark);
}

.home-hero__visual {
  position: relative;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid rgba(23, 50, 77, 0.1);
  background: #fff;
  box-shadow: 0 22px 55px rgba(23, 50, 77, 0.14);
  transform: rotate(1.2deg);
}

.home-hero__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
}

.home-hero__visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.25rem 0.15rem;
  color: var(--home-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.home-hero__note {
  position: absolute;
  right: max(1.5rem, calc((100vw - 1200px) / 2));
  bottom: 1.15rem;
  display: flex;
  gap: 1.25rem;
  color: #70858e;
  font-size: 0.62rem;
  font-weight: 700;
}

.home-hero__note span {
  color: var(--home-teal);
}

.home-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  scroll-margin-top: 5rem;
}

.home-section--tint {
  background: #f5f8fa;
}

.home-section__heading {
  margin-bottom: 2rem;
}

.home-section__heading h2,
.home-account h2,
.home-about-panel h2,
.home-news-panel h2 {
  margin: 0 0 0.7rem;
  color: var(--home-ink);
  font-size: 1.65rem;
}

.home-section__heading > p:last-child,
.home-section__heading > div > p:last-child {
  margin: 0;
  color: var(--home-muted);
}

.home-section__heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.home-service-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--home-line);
  border-radius: 0.5rem;
  background: #fff;
}

.home-service-card__visual {
  position: relative;
  min-height: 0;
  aspect-ratio: 1.8;
  background: #e8f0ef;
}

.home-service-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-service-card__visual--contain {
  display: grid;
  place-items: center;
  background: #edf3f2;
}

.home-service-card__visual--contain img {
  width: 100%;
  height: 100%;
  padding: 1.2rem;
  object-fit: contain;
}

.home-service-card__visual--mark {
  background: #e8edf2;
}

.home-service-card__visual--mark img {
  width: 4.5rem;
  height: 4.5rem;
  padding: 0.4rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 2px 12px rgba(23, 50, 77, 0.12);
}

.home-service-card__label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.55rem;
  background: var(--home-teal);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

.home-service-card__body,
.home-journal-card__body {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.home-card-kicker {
  margin-bottom: 0.65rem;
  color: var(--home-coral);
  font-size: 0.7rem;
  font-weight: 800;
}

.home-service-card h3,
.home-journal-card h3,
.home-strength h3 {
  margin: 0 0 0.75rem;
  color: var(--home-ink);
  font-size: 1.18rem;
}

.home-service-card__body > p:not(.home-card-kicker),
.home-journal-card__body > p:last-child,
.home-strength p {
  color: var(--home-muted);
  font-size: 0.93rem;
  line-height: 1.8;
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--home-teal-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.home-text-link:hover {
  color: var(--home-coral);
}

.home-account {
  padding: 2.4rem 0;
  background: var(--home-ink);
  color: #e7f0f3;
}

.home-account__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.home-account .home-eyebrow {
  color: #70d0c8;
}

.home-account h2 {
  color: #fff;
}

.home-account__inner > div:first-child > p:last-child {
  max-width: 38rem;
  margin: 0;
  color: #d1e0e7;
  line-height: 1.8;
}

.home-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-journal-card {
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 0.5rem;
  background: #fff;
}

.home-journal-card__image {
  display: block;
  overflow: hidden;
  background: #e8f0ef;
}

.home-journal-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.72;
  object-fit: cover;
  transition: transform 180ms ease-out;
}

.home-journal-card__image:hover img {
  transform: scale(1.025);
}

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

.home-journal-card h3 a:hover {
  color: var(--home-teal);
}

.home-journal-card__body > p:last-child {
  margin: 0;
}

.home-strength-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.home-strength {
  padding-top: 1rem;
  border-top: 2px solid var(--home-line);
}

.home-strength__icon {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  background: #e6f3f1;
  color: var(--home-teal-dark);
  font-size: 1rem;
}

.home-strength:nth-child(even) .home-strength__icon {
  background: #fbede8;
  color: #9e4f35;
}

.home-strength p {
  margin: 0;
}

.home-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.7fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.home-about-panel > p:not(.home-eyebrow),
.home-news-panel__empty {
  max-width: 43rem;
  color: var(--home-muted);
  line-height: 1.9;
}

.home-about-panel .home-text-link {
  margin-top: 0.3rem;
}

.home-news-panel {
  padding-left: clamp(1.5rem, 4vw, 3rem);
  border-left: 1px solid #d5e0e3;
}

.home-news-panel__empty {
  margin: 1.5rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid #d5e0e3;
  font-size: 0.92rem;
}

.footer-brand p {
  max-width: 17rem;
  color: #d1dbe4;
  line-height: 1.8;
}

.footer-site-name {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}

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

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

@media (min-width: 768px) {
  .home-hero h1 {
    font-size: 3.2rem;
  }

  .home-section__heading h2,
  .home-account h2,
  .home-about-panel h2,
  .home-news-panel h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .home-hero {
    padding: 3.25rem 0 4rem;
  }

  .home-hero::before {
    width: 100%;
    opacity: 0.5;
  }

  .home-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .home-hero h1 {
    font-size: 2.1rem;
  }

  .home-hero__visual {
    width: min(100%, 34rem);
    margin: 0 auto;
    transform: none;
  }

  .home-hero__visual img {
    aspect-ratio: 1.5;
  }

  .home-hero__note {
    right: 1rem;
    bottom: 0.8rem;
  }

  .home-section__heading--row,
  .home-account__inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .home-about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .home-news-panel {
    padding: 1.5rem 0 0;
    border-top: 1px solid #d5e0e3;
    border-left: 0;
  }
}

@media (max-width: 420px) {
  .logo img {
    height: 1.5rem;
  }

  .logo-name {
    font-size: 0.95rem;
  }

  .home-hero__note {
    display: none;
  }

  .home-hero h1 {
    font-size: 1.8rem;
  }

  .home-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero__actions .btn {
    width: 100%;
  }

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

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