/* Home — Focus Areas (4-column interactive grid) */

body.page-home .focus {
  position: relative;
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  padding: var(--section-pad-y) 0;
  overflow: hidden;
}

/* Soft handoff from #sectors (Industries) */
body.page-home .focus::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(72px, 14vh, 140px);
  pointer-events: none;
  z-index: 6;
  background: linear-gradient(
    to bottom,
    var(--navy-soft) 0%,
    color-mix(in srgb, var(--navy-soft) 78%, transparent) 48%,
    transparent 100%
  );
}

body.page-home .home-markets {
  border-bottom: none !important;
}

/* Soft handoff into #who — no hard section edge */
body.page-home .focus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(72px, 14vh, 140px);
  pointer-events: none;
  z-index: 6;
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0) 0%,
    rgba(248, 250, 252, 0.65) 42%,
    #ffffff 100%
  );
}

body.page-home #who {
  border-top: none !important;
  border-bottom: none !important;
}

body.page-home .who-copy .link-arrow {
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.page-home .enterprise-impact {
  position: relative;
  border-top: none !important;
  border-bottom: none !important;
}

body.page-home.dark-theme .enterprise-impact {
  border-top: none !important;
  border-bottom: none !important;
}

body.page-home.dark-theme .focus {
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

body.page-home.dark-theme .focus::before {
  background: linear-gradient(
    to bottom,
    var(--navy-soft, #111a2f) 0%,
    color-mix(in srgb, var(--navy-soft, #111a2f) 42%, #f8fafc) 38%,
    rgba(248, 250, 252, 0.55) 58%,
    transparent 100%
  );
}

body.page-home.dark-theme .focus::after {
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0) 0%,
    rgba(248, 250, 252, 0.55) 42%,
    var(--black-void, #020407) 100%
  );
}

body.page-home .focus > .wrap {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

body.page-home .focus .fa-header {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto clamp(28px, 4vh, 72px);
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
  position: relative;
  z-index: 5;
}

body.page-home .focus .fa-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-main);
}

body.page-home .focus .fa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 520px;
  gap: 0;
  border: none;
  position: relative;
  z-index: 5;
  padding-left: 80px;
  padding-right: 80px;
}

body.page-home .focus .fa-cell {
  position: relative;
  padding: 56px 20px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: crosshair;
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

body.page-home .focus .fa-cell-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  clip-path: inset(100% 0 0 0);
  transform: none;
  transition: clip-path 0.75s cubic-bezier(0.19, 1, 0.22, 1);
}

body.page-home .focus .fa-cell-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 22, 44, 0.95) 0%, rgba(11, 22, 44, 0.5) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

body.page-home .focus .fa-cell:hover .fa-cell-img,
body.page-home .focus .fa-cell:focus-visible .fa-cell-img {
  clip-path: inset(0 0 0 0);
}

body.page-home .focus .fa-cell:hover .fa-cell-overlay,
body.page-home .focus .fa-cell:focus-visible .fa-cell-overlay {
  opacity: 1;
}

body.page-home .focus .fa-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: color 0.6s ease;
}

body.page-home .focus .fa-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-primary);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.page-home .focus .fa-tag svg {
  width: 20px;
  height: 20px;
  color: var(--cyan-primary);
  transition: color 0.6s ease;
  flex-shrink: 0;
}

body.page-home .focus .fa-kicker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  max-height: 4.5em;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.45s ease, margin 0.45s ease;
}

body.page-home .focus .fa-kicker-idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-primary);
  flex-shrink: 0;
}

body.page-home .focus .fa-kicker-name {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
}

body.page-home .focus .fa-cell:hover .fa-kicker,
body.page-home .focus .fa-cell:focus-visible .fa-kicker {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
}

body.page-home .focus .fa-copy {
  display: grid;
  flex-grow: 1;
}

body.page-home .focus .fa-hook,
body.page-home .focus .fa-desc-p {
  grid-area: 1 / 1;
}

body.page-home .focus .fa-hook {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #334155;
  transition: opacity 0.45s ease, color 0.45s ease;
}

body.page-home .focus .fa-cell:hover .fa-hook,
body.page-home .focus .fa-cell:focus-visible .fa-hook {
  opacity: 0;
}

body.page-home .focus .fa-title-h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: color 0.45s ease, opacity 0.45s ease, max-height 0.45s ease, margin 0.45s ease;
}

body.page-home .focus .fa-desc-p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

body.page-home .focus .fa-cell:hover .fa-title-h3,
body.page-home .focus .fa-cell:focus-visible .fa-title-h3 {
  color: #ffffff;
  opacity: 1;
  max-height: 4.2em;
  margin-bottom: 16px;
}

body.page-home .focus .fa-cell:hover .fa-desc-p,
body.page-home .focus .fa-cell:focus-visible .fa-desc-p {
  opacity: 1;
}

body.page-home .focus .fa-cell:hover .fa-tag,
body.page-home .focus .fa-cell:hover .fa-tag svg,
body.page-home .focus .fa-cell:focus-visible .fa-tag,
body.page-home .focus .fa-cell:focus-visible .fa-tag svg {
  color: var(--cyan-primary);
}

body.page-home .focus .fa-impact-wrapper {
  overflow: hidden;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0;
  max-height: 0;
  opacity: 0;
  transform: none;
  transition: max-height 0.55s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.45s ease,
    padding-top 0.55s cubic-bezier(0.19, 1, 0.22, 1);
}

body.page-home .focus .fa-cell:hover .fa-impact-wrapper,
body.page-home .focus .fa-cell:focus-visible .fa-impact-wrapper {
  max-height: 96px;
  padding-top: 20px;
  opacity: 1;
}

body.page-home .focus .fa-metric-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  display: block;
}

body.page-home .focus .fa-metric-value {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

body.page-home .focus .fa-metric-value span {
  color: var(--cyan-primary);
}

body.page-home .focus .fa-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-primary);
  margin-top: 32px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

body.page-home .focus .fa-cell:hover .fa-explore,
body.page-home .focus .fa-cell:focus-visible .fa-explore {
  opacity: 1;
  transform: translateX(0);
}

body.page-home .focus .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.page-home .focus .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  body.page-home .focus .fa-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 520px;
    border-right: 1px solid rgba(15, 23, 42, 0.05);
  }

  body.page-home .focus .fa-cell {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  }

}

@media (max-width: 768px) {
  body.page-home .focus .fa-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  body.page-home .focus .fa-cell {
    padding: 48px 24px;
    height: auto;
    min-height: 0;
  }

  body.page-home .focus .fa-cell-img {
    clip-path: inset(0 0 0 0);
  }

  body.page-home .focus .fa-cell-overlay {
    opacity: 1;
  }

  body.page-home .focus .fa-kicker {
    display: none;
  }

  body.page-home .focus .fa-title-h3 {
    color: #ffffff;
    font-size: 24px;
    opacity: 1;
    max-height: none;
    margin-bottom: 16px;
  }

  body.page-home .focus .fa-hook {
    display: none;
  }

  body.page-home .focus .fa-desc-p {
    opacity: 1;
    color: rgba(255, 255, 255, 0.85);
  }

  body.page-home .focus .fa-impact-wrapper {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
  }

  body.page-home .focus .fa-explore {
    opacity: 1;
    transform: translateX(0);
  }
}
