body[data-page="home"] .home-hero { padding-top: 0; }
body[data-page="home"] .home-hero-copy { border-top: 0 !important; }

body[data-page="home"] .home-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  border: 0;
}
body[data-page="home"] .home-link-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
  padding: clamp(24px, 2.8vw, 40px);
  border: 1px solid #d4dadd;
  background: #fff;
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
body[data-page="home"] .home-link-card h3 {
  margin: 0 0 20px;
  color: #252b30;
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
body[data-page="home"] .home-link-card p { max-width: 34ch; margin: 0; font-size: 16px; line-height: 1.6; }
body[data-page="home"] .home-link-card:focus-visible { outline: 2px solid #87b9e7; outline-offset: 4px; background: #eff7ff; }
@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] .home-link-card:hover {
    z-index: 1;
    transform: scale(1.025);
    background: #eff7ff;
    border-color: #bed9f4;
    box-shadow: 0 10px 28px #3f6ea00d;
  }
}

/* Enable before the first paint; the normal page stays visible without JavaScript. */
.home-motion-enabled [data-intro-strip],
.home-motion-enabled [data-intro-item],
.home-motion-enabled [data-scroll-reveal]:not(.is-revealed),
.home-motion-enabled .home-entry-item.is-waiting { opacity: 0; }
.home-motion-enabled .home-entry-item.is-entering {
  animation: home-entry-in .65s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: var(--entry-delay, 0ms);
}
.home-motion-enabled [data-intro-strip].is-entering { animation-name: home-strip-in; animation-duration: .75s; }
.home-motion-enabled [data-intro-strip].is-entered,
.home-motion-enabled [data-intro-item].is-entered { opacity: 1; }
.home-entry-item .home-letter-visual,
.home-entry-item .home-letter-word,
.home-entry-item .home-letter {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
.home-entry-item .home-letter-visual { display: inline; }
.home-entry-item .home-letter-word { display: inline-block; white-space: nowrap; }
.home-entry-item .home-letter { display: inline-block; }
.home-motion-enabled .is-entering .home-letter {
  animation: home-letter-in .14s ease-out both;
  animation-delay: calc(var(--entry-delay, 0ms) + var(--letter-delay, 0ms));
}
.home-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  user-select: none;
}
@keyframes home-strip-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes home-entry-in {
  from { opacity: 0; translate: 0 20px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes home-letter-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 600px) {
  body[data-page="home"] .home-link-grid { gap: 18px; }
  body[data-page="home"] .home-link-card { min-height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-motion-enabled [data-intro-strip],
  .home-motion-enabled [data-intro-item],
  .home-motion-enabled [data-scroll-reveal],
  .home-motion-enabled .home-entry-item.is-waiting,
  .home-motion-enabled .home-entry-item.is-entering,
  .home-motion-enabled .is-entering .home-letter { opacity: 1; translate: none; animation: none; }
  body[data-page="home"] .home-link-card { transition: none; }
  body[data-page="home"] .home-link-card:hover { transform: none; }
}
