/* Homepage hero and product catalogue. Scoped to avoid theme conflicts. */
.mit-home { --mit-ink: #102b46; --mit-blue: #086ca8; box-sizing: border-box; font-family: inherit; }
.mit-home *, .mit-home *::before, .mit-home *::after { box-sizing: border-box; }
.mit-home .mit-container { width: min(1280px, 100%); margin-inline: auto; }
.mit-home h1, .mit-home h2, .mit-home h3, .mit-home p { margin: 0; }
.mit-home a { text-decoration: none; }
.mit-home a:focus-visible { outline: 3px solid #0082c9; outline-offset: 6px; }
.mit-home .mit-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.mit-hero { position: relative; padding: clamp(56px, 7vw, 110px) clamp(20px, 5vw, 80px); color: #f7fbff; background: radial-gradient(ellipse at 95% 15%, #17496a 0, transparent 55%), #0a2035; }
.mit-hero-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.mit-hero-copy, .mit-ecosystem { min-width: 0; }
.mit-hero .mit-eyebrow { color: #9ed9fb; margin-bottom: 26px; }
.mit-hero h1 { color: #fff; font-size: clamp(36px, 4.3vw, 64px); font-weight: 650; line-height: 1.09; letter-spacing: -.045em; overflow-wrap: break-word; }
.mit-hero h1 span { color: #83d1fc; }
.mit-hero .mit-hero-description { max-width: 540px; margin-top: 26px; color: #c8d8e5; font-size: 18px; line-height: 1.75; }
.mit-hero .mit-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 52px; margin-top: 32px; padding: 15px 22px; background: #a3e0ff; color: #0a2035; border: 1px solid transparent; border-radius: 8px; font-size: 15px; font-weight: 700; transition: background .2s; }
.mit-hero .mit-button:hover { background: #fff; }
.mit-hero .mit-benefits { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0; margin: 32px 0 0; list-style: none; color: #c8d8e5; font-size: 13px; }
.mit-benefits li::before { content: "\2713"; color: #83d1fc; margin-right: 8px; }
.mit-ecosystem { padding: clamp(20px, 3vw, 36px); border: 1px solid #456077; border-radius: 22px; background: linear-gradient(145deg, #203e55, #102b42); box-shadow: 0 30px 70px #0003; }
.mit-ecosystem-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #c8d8e5; font-size: 12px; letter-spacing: .04em; }
.mit-status { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #83d1fc; box-shadow: 0 0 0 5px #83d1fc15; }
.mit-ecosystem-brand { padding-block: 30px; text-align: center; font-size: 48px; font-weight: 700; letter-spacing: -.055em; line-height: 1.2; }
.mit-ecosystem-brand > span { color: #83d1fc; }
.mit-ecosystem-brand p { margin-top: 8px; font-size: 13px; font-weight: 400; color: #c8d8e5; letter-spacing: 0; }
.mit-ecosystem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mit-ecosystem-grid > div { padding: 14px; border: 1px solid #456077; border-radius: 8px; background: #0b223780; }
.mit-ecosystem-grid span { display: block; color: #b8cddd; font-size: 11px; margin-bottom: 5px; }
.mit-ecosystem-grid strong { color: #f7fbff; font-size: 17px; font-weight: 600; }
.mit-ecosystem .mit-ecosystem-footer { margin-top: 22px; color: #b8cddd; font-size: 12px; text-align: center; }
.mit-products { padding: clamp(56px, 7vw, 100px) clamp(20px, 5vw, 80px); color: var(--mit-ink); background: #f5f8fb; scroll-margin-top: 100px; }
.mit-products-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.mit-products .mit-eyebrow { color: var(--mit-blue); margin-bottom: 18px; }
.mit-products h2 { color: var(--mit-ink); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.2; letter-spacing: -.035em; font-weight: 650; }
.mit-products h2 span { color: var(--mit-blue); }
.mit-products-intro > p, .mit-products-context { color: #4b6072; font-size: 16px; line-height: 1.8; }
.mit-products .mit-products-context { margin-top: 28px; max-width: 1100px; }
.mit-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 42px; }
.mit-product-card { display: flex; flex-direction: column; min-width: 0; padding: 26px 22px; background: #fff; border: 1px solid #dce5ed; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.mit-product-card:hover, .mit-product-card:focus-within { border-color: #78b8db; box-shadow: 0 12px 28px #102b460d; }
.mit-card-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 28px; }
.mit-product-category { color: #526b80; font-size: 11px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; overflow-wrap: anywhere; }
.mit-product-number { color: #687f91; font-size: 12px; font-variant-numeric: tabular-nums; }
.mit-product-card h3 { color: var(--mit-ink); font-size: clamp(25px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.035em; font-weight: 400; }
.mit-product-card h3 strong { font-weight: 750; }
.mit-product-card > p { color: #526475; font-size: 14px; line-height: 1.75; margin: 18px 0 28px; }
.mit-product-card > a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; margin-top: auto; padding-top: 16px; border-top: 1px solid #e7edf2; color: var(--mit-blue); font-size: 14px; font-weight: 700; }
.mit-product-card > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mit-product-card > a span { font-size: 20px; }
.mit-products .mit-products-closing { margin-top: 36px; padding-top: 28px; border-top: 1px solid #dce5ed; color: #526475; font-size: 16px; line-height: 1.8; text-align: center; }
.mit-products-closing strong { color: var(--mit-ink); }
@media (max-width: 1050px) {
  .mit-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mit-hero-layout { gap: 32px; }
}
@media (max-width: 780px) {
  .mit-hero-layout, .mit-products-intro { grid-template-columns: minmax(0, 1fr); }
  .mit-ecosystem { max-width: 540px; width: 100%; }
  .mit-products-intro { gap: 24px; }
}
@media (max-width: 520px) {
  .mit-product-grid { grid-template-columns: minmax(0, 1fr); }
  .mit-hero h1 { font-size: clamp(32px, 8.5vw, 44px); }
  .mit-hero .mit-hero-description { font-size: 16px; }
  .mit-ecosystem-grid > div { padding: 12px 10px; }
  .mit-product-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .mit-home *, .mit-home *::before, .mit-home *::after { transition: none; }
}
/* Services share the product card styling, with a three-column layout. */
.mit-services { padding: clamp(56px, 7vw, 100px) clamp(20px, 5vw, 80px); color: var(--mit-ink); background: #fff; border-top: 1px solid #e7edf2; }
.mit-services-intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.mit-services .mit-eyebrow { color: var(--mit-blue); margin-bottom: 18px; }
.mit-services h2 { color: var(--mit-ink); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.2; letter-spacing: -.035em; font-weight: 650; }
.mit-services h2 span { color: var(--mit-blue); }
.mit-services-copy { min-width: 0; color: #4b6072; font-size: 16px; line-height: 1.8; }
.mit-services-copy p + p { margin-top: 18px; }
.mit-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 42px; }
.mit-service-card { padding: clamp(24px, 2.5vw, 34px); background: #f8fafc; }
.mit-service-card .mit-card-top { align-items: center; margin-bottom: 26px; }
.mit-service-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border: 1px solid #d5e8f4; border-radius: 12px; color: var(--mit-blue); background: #eaf4fa; }
.mit-service-icon svg { display: block; flex-shrink: 0; }
.mit-service-card h3 { font-size: clamp(24px, 2.2vw, 30px); overflow-wrap: anywhere; }
.mit-service-card > p { font-size: 16px; }
@media (max-width: 900px) {
  .mit-services-intro { grid-template-columns: minmax(0, 1fr); }
  .mit-service-card { padding: 24px; }
}
@media (max-width: 780px) {
  .mit-service-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Trust and direct contact: experience, practical strengths and a clear next step. */
.mit-trust { padding: clamp(56px, 7vw, 100px) clamp(20px, 5vw, 80px); color: var(--mit-ink); background: #f5f8fb; border-top: 1px solid #e7edf2; }
.mit-trust-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; }
.mit-trust .mit-eyebrow { color: var(--mit-blue); margin-bottom: 18px; }
.mit-trust h2 { color: var(--mit-ink); font-size: clamp(32px, 3.2vw, 46px); line-height: 1.15; letter-spacing: -.035em; font-weight: 650; }
.mit-trust h2 span { color: var(--mit-blue); }
.mit-trust-signature { padding-left: 24px; border-left: 2px solid #91c8e8; }
.mit-trust-signature strong { display: block; color: var(--mit-ink); font-size: 24px; line-height: 1.3; letter-spacing: -.025em; }
.mit-trust-signature span { display: block; margin-top: 6px; color: #526475; font-size: 14px; }
.mit-trust .mit-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; padding: 0; margin: 42px 0 0; list-style: none; }
.mit-trust-grid > li { min-width: 0; padding: 28px 0 32px; border-top: 1px solid #ccdce8; }
.mit-trust-index { display: block; margin-bottom: 18px; color: var(--mit-blue); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.mit-trust-grid h3 { max-width: 340px; color: var(--mit-ink); font-size: 21px; line-height: 1.35; letter-spacing: -.02em; font-weight: 650; overflow-wrap: break-word; }
.mit-trust-grid p { margin-top: 12px; color: #526475; font-size: 16px; line-height: 1.8; }
.mit-contact-panel { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 32px; padding: clamp(26px, 4vw, 52px); border: 1px solid #28465e; border-radius: 18px; color: #f7fbff; background: radial-gradient(ellipse at 0 0, #204761, transparent 70%), #0a2035; }
.mit-contact-copy, .mit-contact-details { min-width: 0; }
.mit-contact-panel .mit-eyebrow { color: #9ed9fb; }
.mit-contact-panel h3 { color: #fff; font-size: clamp(25px, 2.6vw, 36px); font-weight: 650; line-height: 1.2; letter-spacing: -.03em; overflow-wrap: break-word; }
.mit-contact-panel h3 span { color: #83d1fc; }
.mit-contact-copy > p:not(.mit-eyebrow) { margin-top: 20px; max-width: 540px; color: #c8d8e5; font-size: 16px; line-height: 1.8; }
.mit-contact-panel .mit-contact-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 100%; min-height: 52px; margin-top: 28px; padding: 15px 20px; border-radius: 8px; color: #0a2035; background: #a3e0ff; font-size: 15px; line-height: 1.5; font-weight: 700; transition: background .2s; }
.mit-contact-panel .mit-contact-button:hover { background: #fff; }
.mit-contact-button span { flex-shrink: 0; }
.mit-contact-details { padding-left: clamp(24px, 3vw, 44px); border-left: 1px solid #456077; font-style: normal; font-size: 16px; line-height: 1.8; }
.mit-contact-details > strong { color: #fff; font-size: 18px; }
.mit-contact-details > p { margin-top: 12px; color: #c8d8e5; }
.mit-contact-links { display: flex; flex-direction: column; align-items: start; margin-top: 20px; }
.mit-contact-links a { display: inline-flex; align-items: center; min-height: 44px; color: #a3e0ff; font-weight: 600; overflow-wrap: anywhere; }
.mit-contact-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.mit-contact-panel a:focus-visible { outline-color: #a3e0ff; }
@media (max-width: 1050px) {
  .mit-trust .mit-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .mit-trust-heading { flex-direction: column; align-items: start; }
  .mit-contact-panel { grid-template-columns: minmax(0, 1fr); }
  .mit-contact-details { padding: 28px 0 0; border-left: 0; border-top: 1px solid #456077; }
}
@media (max-width: 520px) {
  .mit-trust .mit-trust-grid { grid-template-columns: minmax(0, 1fr); }
  .mit-contact-panel .mit-contact-button { font-size: 14px; padding-inline: 14px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .mit-contact-panel .mit-contact-button { transition: none; }
}
/* Gutenberg's classic Group wrapper must not become a lone grid/flex item. */
.mit-home .wp-block-group > .wp-block-group__inner-container {
  display: contents;
}
.mit-home .wp-block-group__inner-container > .wp-block-group {
  min-width: 0;
}
.mit-home .mit-ecosystem-grid > .wp-block-group__inner-container {
  padding: 0;
  border: 0;
  background: none;
}
.mit-ecosystem-grid > .wp-block-group__inner-container > div {
  padding: 14px;
  border: 1px solid #456077;
  border-radius: 8px;
  background: #0b223780;
}
.mit-products-intro > .wp-block-group__inner-container > p {
  color: #4b6072;
  font-size: 16px;
  line-height: 1.8;
}
.mit-product-card > .wp-block-group__inner-container > p {
  color: #526475;
  font-size: 14px;
  line-height: 1.75;
  margin: 18px 0 28px;
}
.mit-service-card > .wp-block-group__inner-container > p {
  font-size: 16px;
}
.mit-home .mit-product-card .wp-block-image {
  width: 100%;
  margin: 20px 0;
}
.mit-home .mit-product-grid .mit-product-card .wp-block-image {
  margin: 0;
}
.mit-home .mit-product-card .wp-block-image a,
.mit-home .mit-product-card .wp-block-image img {
  display: block;
  width: 100%;
}
.mit-home .mit-products-intro:has(.mit-product-card) {
  align-items: stretch;
}
.mit-home .mit-product-card p:last-child { margin-bottom: 0; }
.mit-home .mit-product-card p > a { font-weight: 600; }
.mit-home .mit-ecosystem-brand p:first-child { color: #f7fbff; line-height: 1.2; }
/* This company page already provides its own hero. */
.page-id-10 .page-header:has(+ .page-content .mit-hero) { display: none; }
@media (max-width: 520px) {
  .mit-ecosystem-grid > .wp-block-group__inner-container > div { padding: 12px 10px; }
}
/* Override the old per-page 80px banner overlap on the company page. */
.page-id-10 .page-content:has(.mit-hero) { margin-top: 0; }
.mit-home section[id] { scroll-margin-top: 160px; }
/* Product icons in the hero ecosystem; company fact tiles remain unchanged. */
.mit-ecosystem-grid > .mit-ecosystem-product {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px;
  align-content: center;
  align-items: center;
}
.mit-ecosystem-grid .mit-ecosystem-icon {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 9px;
  background: #f5f8fb;
  overflow: hidden;
}
.mit-ecosystem-icon img { display: block; width: 40px; height: 40px; object-fit: contain; }
.mit-ecosystem-product > span:not(.mit-ecosystem-icon) { overflow-wrap: anywhere; }
.mit-ecosystem-product > strong { overflow-wrap: anywhere; }
@media (min-width: 781px) and (max-width: 1100px), (max-width: 520px) {
  .mit-ecosystem-grid > .mit-ecosystem-product { grid-template-columns: minmax(0, 1fr); }
  .mit-ecosystem-grid .mit-ecosystem-icon { grid-row: auto; margin-bottom: 10px; }
}
/* Linked hero tiles share the original tile surfaces. */
.mit-ecosystem-grid > a.mit-ecosystem-product {
  min-width: 0;
  padding: 14px;
  border: 1px solid #456077;
  border-radius: 8px;
  color: #f7fbff;
  background: #0b223780;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.mit-ecosystem-grid > a.mit-ecosystem-product:hover,
.mit-ecosystem-grid > a.mit-ecosystem-product:focus-visible {
  background: #244c67;
  border-color: #83d1fc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #0003;
}
.mit-home .mit-ecosystem-product:focus-visible {
  outline: 2px solid #a3e0ff;
  outline-offset: 3px;
}
@media (max-width: 520px) {
  .mit-ecosystem-grid > a.mit-ecosystem-product { padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .mit-ecosystem-grid > a.mit-ecosystem-product { transition: none; }
  .mit-ecosystem-grid > a.mit-ecosystem-product:hover,
  .mit-ecosystem-grid > a.mit-ecosystem-product:focus-visible { transform: none; }
}
