.hero {
  --hero-image: url("../images/hero-alumni-campus.png");
  --hero-min-height: 383px;
  --hero-text-column-width: 560px;
  --hero-title-size: 4.45rem;
  --hero-title-weight: 880;
  --hero-title-line-height: 0.98;
  --hero-body-size: 1.08rem;
  --hero-body-weight: 400;
  --hero-body-line-height: 1.55;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #fbfdff 0%, #fbfdff 36%, #dff2fa 36%, #dff2fa 100%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, var(--hero-text-column-width)) minmax(0, 1fr);
  min-height: var(--hero-min-height);
}

.hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: var(--hero-text-column-width);
  padding: 2.7rem 3rem 2.7rem 0;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  color: var(--imt-teal);
  font-size: 0.95rem;
  font-weight: 880;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  color: #070d29;
  font-size: var(--hero-title-size);
  font-weight: var(--hero-title-weight);
  line-height: var(--hero-title-line-height);
  letter-spacing: 0;
}

.imt-section-mark {
  width: 62px;
  height: 5px;
  margin: 1.25rem 0 1.4rem;
  background: var(--imt-cyan);
}

.hero__text {
  max-width: 100%;
  margin: 0 0 1.9rem;
  color: var(--imt-navy);
  font-size: var(--hero-body-size);
  font-weight: var(--hero-body-weight);
  line-height: var(--hero-body-line-height);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.hero__visual {
  position: relative;
  min-height: var(--hero-min-height);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 0%) 70%, rgb(20 34 60 / 8%) 100%),
    var(--hero-image) center / cover no-repeat;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%, 17% 52%);
}

.hero__triangle {
  position: absolute;
  z-index: 3;
  bottom: 0;
  width: clamp(120px, 14vw, 210px);
  aspect-ratio: 1.15 / 1;
  background: linear-gradient(135deg, var(--imt-cyan), var(--imt-cyan));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hero__triangle--left {
  left: 34%;
}

.hero__triangle--right {
  right: 1.5rem;
}

.content-band {
  padding: 2rem 0 0;
  background: linear-gradient(180deg, var(--imt-bg), var(--imt-white) 35%);
}

.stats-strip {
  padding: 2rem 0 1.25rem;
  background: var(--imt-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 1.25rem 1.4rem;
  background: #f1f8fb;
}

.stat-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 0.95rem;
  min-height: 74px;
  padding: 0.4rem 1.1rem;
  border-left: 1px solid #cbdde7;
}

.stat-card:first-child {
  border-left: 0;
}

.stat-card strong {
  display: block;
  color: var(--imt-teal);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.stat-card span span {
  display: block;
  max-width: 120px;
  color: var(--imt-navy);
  font-size: 0.82rem;
  font-weight: 770;
  line-height: 1.25;
}

.stat-card__icon,
.community-card__icon {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  color: var(--imt-teal);
}

.stat-card__icon::before,
.community-card__icon::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 14px;
  font-size: 1.65rem;
  font-weight: 700;
}

.stat-card__icon--people::before,
.stat-card__icon--community::before {
  content: "○○";
  border: 0;
  letter-spacing: -0.25em;
}

.stat-card__icon--globe::before {
  content: "◎";
  border-radius: 50%;
}

.stat-card__icon--calendar::before {
  content: "□";
  border-radius: 6px;
}

.stat-card__icon--building::before {
  content: "▥";
}

.stat-card__icon--graduation::before {
  content: "◇";
  border: 0;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.92fr;
  gap: 1.45rem;
}

.panel {
  border: 1px solid var(--imt-line);
  border-radius: var(--imt-radius);
  background: var(--imt-white);
  box-shadow: 0 10px 28px rgb(20 34 60 / 4%);
}

.panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.45rem 0.4rem;
}

.panel h2 {
  margin: 0;
  color: var(--imt-navy);
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.panel h2::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 0.65rem;
  background: var(--imt-cyan);
}

.news-list {
  padding: 0.3rem 1.45rem 1.25rem;
}

.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--imt-line);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item__image {
  min-height: 84px;
  border-radius: var(--imt-radius);
  background:
    linear-gradient(135deg, rgb(0 184 222 / 18%), rgb(20 34 60 / 8%)),
    var(--image, linear-gradient(135deg, #dbeef7, #f7fbfd));
  background-size: cover;
  background-position: center;
}

.news-item__tag,
.event-card__tag {
  color: var(--imt-teal);
  font-size: 0.72rem;
  font-weight: 880;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-item h3,
.event-card h3 {
  margin: 0.22rem 0;
  color: var(--imt-navy);
  font-size: 0.98rem;
  line-height: 1.35;
}

.news-item time,
.event-card__meta {
  color: var(--imt-muted);
  font-size: 0.82rem;
  font-weight: 620;
}

.event-list {
  padding: 0.65rem 1.45rem 1.25rem;
}

.event-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 1.15rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--imt-line);
}

.event-card:last-child {
  border-bottom: 0;
}

.event-date {
  display: grid;
  place-items: center;
  min-height: 80px;
  border: 1px solid #94d4e3;
  color: var(--imt-teal);
  font-weight: 900;
  line-height: 1;
}

.event-date strong {
  font-size: 2rem;
}

.event-date span {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.event-card .imt-button {
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
}

.member-panel {
  padding: 1.35rem;
  background: #fbfdff;
}

.member-panel__login {
  padding-top: 0.4rem;
}

.member-panel .imtaa-login-card h2 {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.15rem;
  font-size: 1.08rem;
}

.member-panel .imtaa-login-card h2::before {
  width: 30px;
  height: 30px;
}

.member-panel .imtaa-login-card__options,
.member-panel .imtaa-login-card__join {
  flex-direction: column;
  align-items: flex-start;
}

.member-panel .imtaa-login-card__forgotten {
  justify-items: start;
}

.member-panel .imtaa-login-card__link {
  margin: 0.6rem 0 0;
}

.login-card {
  display: grid;
  gap: 1rem;
  padding: 0.3rem 0.1rem 1.25rem;
  border-bottom: 1px solid var(--imt-line);
}

.login-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--imt-muted);
  font-size: 0.82rem;
}

.login-card__meta a {
  color: var(--imt-teal);
  font-weight: 720;
}

.login-card .imt-button,
.login-card__join .imt-button {
  width: 100%;
}

.login-card__join {
  padding-top: 1.25rem;
}

.login-card__join span {
  color: var(--imt-navy);
  font-size: 0.9rem;
  font-weight: 850;
}

.login-card__join p {
  margin: 0.2rem 0 1rem;
  color: #2a3852;
  font-size: 0.9rem;
}

.member-status-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 0 0.25rem;
}

.member-status-card strong {
  color: var(--imt-navy);
  font-size: 1.05rem;
}

.member-status-card p {
  margin: 0;
  color: #2a3852;
  font-size: 0.92rem;
}

.community-section {
  padding: 2.2rem 0 0;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.85rem;
}

.section-title-row h2 {
  margin: 0;
  color: var(--imt-navy);
  font-size: 1.22rem;
  font-weight: 930;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.section-title-row p {
  margin: 0.4rem 0 0;
  color: var(--imt-navy);
  font-size: 0.95rem;
}

.tabs {
  display: flex;
  gap: 2.2rem;
  margin: 0 0 1.2rem;
  border-bottom: 1px solid var(--imt-line);
}

.tabs a {
  position: relative;
  padding: 0 0 0.7rem;
  color: var(--imt-navy);
  font-size: 0.9rem;
  font-weight: 790;
}

.tabs a.is-active {
  color: var(--imt-navy);
}

.tabs a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--imt-cyan);
}

.community-slider {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.35rem;
}

.community-card {
  display: grid;
  min-height: 150px;
  place-items: center;
  gap: 0.38rem;
  padding: 1.15rem;
  border: 1px solid var(--imt-line);
  border-radius: var(--imt-radius);
  background: var(--imt-white);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.community-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--imt-shadow);
}

.community-card strong {
  color: var(--imt-navy);
  font-size: 0.92rem;
}

.community-card span {
  color: #43506a;
  font-size: 0.82rem;
}

.community-card .community-card__icon {
  color: var(--imt-teal);
}

.community-card__icon {
  width: 58px;
  height: 58px;
  margin-bottom: 0.3rem;
}

.community-card__icon::before {
  border: 0;
  font-size: 2.45rem;
  line-height: 1;
}

.community-card__icon--brain::before { content: "⌘"; }
.community-card__icon--wind::before { content: "⚑"; }
.community-card__icon--rocket::before { content: "♢"; }
.community-card__icon--tower::before { content: "△"; }
.community-card__icon--compass::before { content: "◎"; }
.community-card__icon--plus::before {
  content: "+";
  border: 1px solid #aebdca;
  border-radius: 50%;
  color: #9aa6b6;
}

.feature-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.45rem;
  padding: 1.75rem 0 0.8rem;
}

.feature-banner {
  position: relative;
  min-height: 150px;
  display: grid;
  align-content: center;
  overflow: hidden;
  padding: 1.55rem 1.75rem;
  border-radius: 4px;
  color: var(--imt-white);
  background: linear-gradient(110deg, var(--imt-navy) 0%, var(--imt-cyan) 52%, #d9eef6 100%);
}

.feature-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 38%, rgb(255 255 255 / 50%) 0 9%, transparent 24%),
    linear-gradient(90deg, rgb(20 34 60 / 0%) 45%, rgb(255 255 255 / 30%) 100%);
  opacity: 0.8;
}

.feature-banner > * {
  position: relative;
  z-index: 1;
}

.feature-banner strong {
  display: block;
  max-width: 380px;
  font-size: 1.35rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.feature-banner span span {
  display: block;
  max-width: 390px;
  margin-top: 0.45rem;
  color: rgb(255 255 255 / 88%);
  font-size: 0.95rem;
}

.feature-banner em {
  width: fit-content;
  margin-top: 1rem;
  padding: 0.65rem 0.95rem;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--imt-cyan), var(--imt-cyan-2));
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 820;
}

.feature-banner--business {
  background: linear-gradient(110deg, var(--imt-navy) 0%, var(--imt-cyan) 48%, #c9dce7 100%);
}

.partners {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1.1rem 0;
}

.partners h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.partners__logos {
  display: grid;
  grid-template-columns: repeat(8, minmax(82px, 1fr));
  align-items: center;
  gap: 1.3rem;
  color: var(--imt-navy);
}

.partner-logo {
  display: grid;
  min-height: 48px;
  place-items: center;
  color: var(--imt-navy);
  font-weight: 900;
  letter-spacing: -0.03em;
  opacity: 0.9;
}

@media (max-width: 1180px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-card:nth-child(3n + 1) {
    border-left: 0;
  }

  .community-slider {
    grid-template-columns: repeat(3, 1fr);
  }

  .partners__logos {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 780px) {
  .hero {
    background: var(--imt-white);
  }

  .hero__inner {
    display: flex;
    min-height: auto;
    flex-direction: column;
  }

  .hero__content {
    max-width: 100%;
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: min(var(--hero-title-size), 3.2rem);
  }

  .hero__visual {
    min-height: 245px;
    clip-path: none;
  }

  .hero__triangle {
    display: none;
  }

  .news-item,
  .event-card,
  .partners {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .community-slider,
  .partners__logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card,
  .stat-card:nth-child(3n + 1) {
    border-left: 0;
    border-top: 1px solid #cbdde7;
  }

  .stat-card:nth-child(-n + 2) {
    border-top: 0;
  }

  .feature-banners {
    grid-template-columns: 1fr;
  }
}
