/* Homepage refresh: fiber-optic hero, calmer intro, research cards. */

/* Hero ------------------------------------------------------------------ */
.layout--home .page__hero--overlay.hero--fibers {
  position: relative;
  min-height: clamp(380px, 52vh, 560px);
  background-color: #06111b;
  background-image:
    linear-gradient(180deg, rgba(5, 14, 23, 0.94) 0%, rgba(6, 18, 29, 0.86) 55%, rgba(8, 24, 36, 0.62) 100%),
    url('/assets/images/banner.png');
  background-size: cover;
  background-position: center bottom;
  isolation: isolate;
}

.hero-fibers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.layout--home .hero--fibers .wrapper {
  position: relative;
  z-index: 1;
  padding-block: 3rem 3.5rem;
}

.layout--home .hero--fibers .page__title {
  text-shadow: 0 2px 24px rgba(0, 10, 20, 0.85);
}

.hero-tagline {
  margin: 1.1rem auto 0;
  max-width: 46ch;
  color: #bfe9f5;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  text-shadow: 0 1px 12px rgba(0, 10, 20, 0.9);
}

.hero-tagline span {
  color: #ffd38a;
}

/* Soft fade from the dark hero into the page. */
.layout--home .hero--fibers::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(62, 230, 255, 0.55), rgba(255, 200, 120, 0.55), transparent);
  z-index: 1;
}

/* Intro ----------------------------------------------------------------- */
.layout--home .home-intro {
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 5vw, 4.5rem);
  align-items: center;
}

.layout--home .home-intro__portrait img {
  height: min(62vh, 620px);
  border-radius: 14px;
  box-shadow: 0 18px 40px -22px rgba(6, 17, 27, 0.55);
}

.layout--home .home-intro__copy h2 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 3.1vw, 3.1rem);
  line-height: 1.04;
}

.layout--home .home-intro__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid #137985;
  color: #0f5f69;
  transition: background 150ms ease, color 150ms ease;
}

.layout--home .home-intro__links a:first-child {
  background: #0f5f69;
  border-color: #0f5f69;
  color: #fff;
}

.layout--home .home-intro__links a:hover {
  background: #0b4a52;
  border-color: #0b4a52;
  color: #fff;
}

/* Research cards -------------------------------------------------------- */
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 0 0 clamp(4rem, 7vw, 6rem);
}

.home-cards__title {
  grid-column: 1 / -1;
  margin: 0 0 0.25rem;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.1;
}

.home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 210px;
  padding: 1.4rem 1.4rem 1.3rem;
  border-radius: 14px;
  color: #e8f3f7 !important;
  text-decoration: none !important;
  background: linear-gradient(160deg, #0c2232 0%, #081723 100%);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-card:hover,
.home-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -18px rgba(6, 17, 27, 0.7);
}

.home-card:focus-visible {
  outline: 2px solid #ffd38a;
  outline-offset: 3px;
}

.home-card svg {
  width: 100%;
  height: 46px;
  margin-bottom: 0.2rem;
}

.home-card h3 {
  margin: 0 !important;
  color: #fff;
  font-size: 1.25rem !important;
  line-height: 1.2;
}

.home-card p {
  margin: 0;
  color: #a9c3cf;
  font-size: 0.9rem !important;
  line-height: 1.5;
}

.home-card .more {
  margin-top: auto;
  color: #7fe3f7;
  font-size: 0.85rem;
  font-weight: 700;
}

.home-card .more::after {
  content: " \2192";
}

@media (max-width: 64em) {
  .home-cards { grid-template-columns: 1fr; }
  .home-card { min-height: 0; }
}

@media (max-width: 37.5em) {
  .layout--home .page__hero--overlay.hero--fibers { min-height: 340px; }
  .layout--home .home-intro__portrait img { height: 52vh; }
}

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