/* =========================================================
   INDUSTRIES
========================================================= */

.industries-section {
  position: relative;
  padding: 85px 0 75px;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 92% 20%,
      rgba(3, 58, 161, 0.035),
      transparent 26%
    ),
    #ffffff;

  color: var(--blue-dark);
}

/* =========================================================
   BACKGROUND
========================================================= */

.industries-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.industries-watermark {
  position: absolute;

  right: -80px;
  top: 15px;

  color: rgba(3, 58, 161, 0.022);

  font-size: 500px;
  line-height: 0.8;
  font-weight: 800;
  letter-spacing: -0.12em;

  user-select: none;
}

.industries-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.industries-glow-one {
  width: 220px;
  height: 220px;

  right: -90px;
  top: 25%;

  background: rgba(3, 58, 161, 0.04);

  animation: industryGlowOne 10s ease-in-out infinite;
}

.industries-glow-two {
  width: 150px;
  height: 150px;

  left: -70px;
  bottom: 10%;

  background: rgba(221, 3, 27, 0.025);

  animation: industryGlowTwo 9s ease-in-out infinite;
}

/* =========================================================
   CONTAINER
========================================================= */

.industries-container {
  position: relative;
  z-index: 2;

  width: min(1240px, calc(100% - 64px));

  margin: 0 auto;
}

/* =========================================================
   HEADER
========================================================= */

.industries-header {
  margin-bottom: 48px;
}

.industries-eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;

  color: #0646bd;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.21em;
}

/* =========================================================
   EYEBROW
========================================================= */

.industries-eyebrow .eyebrow-mark {
  position: relative;

  width: 42px;
  height: 1px;

  flex: 0 0 auto;

  background: rgba(3, 58, 161, 0.65);
}

.industries-eyebrow .eyebrow-mark::before {
  content: "";

  position: absolute;

  left: 0;
  top: 50%;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #dd031b;

  transform: translateY(-50%);

  box-shadow: 0 0 0 3px rgba(221, 3, 27, 0.08);
}

/* =========================================================
   HEADING
========================================================= */

.industries-heading-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(290px, 360px);

  gap: 55px;

  align-items: end;

  margin-top: 22px;
}

.industries-heading-row h2 {
  max-width: 760px;

  margin: 0;

  color: var(--blue-dark);

  /*
       Smaller than hero/about.
       This is now a section heading,
       not a hero heading.
    */
  font-size: clamp(42px, 4.5vw, 64px);

  font-weight: 700;

  line-height: 0.98;

  letter-spacing: -0.055em;
}

.industries-heading-row h2 span {
  display: block;
  color: #0646bd;
}

.industries-heading-row p {
  max-width: 360px;

  margin: 0;

  padding-left: 20px;

  border-left: 2px solid rgba(221, 3, 27, 0.7);

  color: #71829f;

  font-size: 12px;

  line-height: 1.75;
}

/* =========================================================
   SHOWCASE
========================================================= */

.industries-showcase {
  display: grid;

  grid-template-columns:
    minmax(290px, 0.72fr)
    minmax(0, 1.28fr);

  min-height: 465px;

  border-top: 1px solid rgba(5, 34, 94, 0.11);
  border-bottom: 1px solid rgba(5, 34, 94, 0.11);
}

/* =========================================================
   INDUSTRY LIST
========================================================= */

.industry-list {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 20px 42px 20px 0;
}

.industry-item {
  position: relative;

  width: 100%;
  min-height: 59px;

  display: grid;

  grid-template-columns:
    38px
    minmax(0, 1fr)
    28px;

  align-items: center;

  gap: 14px;

  padding: 0 10px 0 0;

  border: 0;
  border-bottom: 1px solid rgba(5, 34, 94, 0.08);

  background: transparent;

  color: #8290a7;

  text-align: left;

  cursor: pointer;

  transition:
    color 0.3s ease,
    padding 0.3s ease;
}

.industry-item:first-child {
  border-top: 1px solid rgba(5, 34, 94, 0.08);
}

.industry-item::before {
  content: "";

  position: absolute;

  left: 0;
  top: 50%;

  width: 2px;
  height: 0;

  background: var(--red);

  transform: translateY(-50%);

  transition: height 0.3s ease;
}

.industry-item:hover,
.industry-item.active {
  color: var(--blue-dark);
  padding-left: 11px;
}

.industry-item.active::before {
  height: 27px;
}

/* =========================================================
   NUMBER
========================================================= */

.industry-number {
  color: #a6b0bf;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 0.06em;

  transition: color 0.3s ease;
}

.industry-item.active .industry-number {
  color: var(--red);
}

/* =========================================================
   NAME
========================================================= */

.industry-name {
  min-width: 0;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: -0.01em;
}

/* =========================================================
   ARROW
========================================================= */

.industry-arrow {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 26px;
  height: 26px;

  border-radius: 50%;

  color: #9ba7b8;

  background: rgba(3, 58, 161, 0.04);

  font-size: 11px;

  opacity: 0;

  transform: translate(-5px, 4px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.industry-item:hover .industry-arrow,
.industry-item.active .industry-arrow {
  opacity: 1;

  color: #ffffff;

  background: var(--blue);

  transform: translate(0, 0);
}

/* =========================================================
   FEATURE
========================================================= */

.industry-feature {
  position: relative;

  min-width: 0;

  padding: 18px 0 18px 20px;
}

.industry-image-wrap {
  position: relative;

  width: 100%;
  height: 100%;

  min-height: 425px;

  overflow: hidden;

  border-radius: 3px;

  background: var(--blue-deep);

  box-shadow: 0 22px 55px rgba(5, 34, 94, 0.11);
}

.industry-image {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transform: scale(1.025);

  transition:
    opacity 0.4s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.industry-image-wrap.is-changing .industry-image {
  opacity: 0.3;
  transform: scale(1.06);
}

/* =========================================================
   IMAGE OVERLAY
========================================================= */

.industry-image-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(3, 24, 63, 0.5) 0%,
    rgba(3, 24, 63, 0.03) 42%,
    rgba(3, 24, 63, 0.78) 100%
  );
}

/* =========================================================
   IMAGE TOP
========================================================= */

.industry-image-top {
  position: absolute;

  left: 24px;
  right: 24px;
  top: 21px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  color: rgba(255, 255, 255, 0.55);

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 0.17em;
}

.feature-index {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 31px;
  height: 31px;

  border: 1px solid rgba(255, 255, 255, 0.24);

  border-radius: 50%;

  color: rgba(255, 255, 255, 0.75);

  font-size: 8px;
}

/* =========================================================
   FEATURE CONTENT
========================================================= */

.industry-feature-content {
  position: absolute;

  left: 28px;
  right: 28px;
  bottom: 27px;
}

.feature-label {
  display: block;

  margin-bottom: 11px;

  color: #9ab8f5;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 0.17em;
}

.industry-feature-content h3 {
  max-width: 550px;

  margin: 0;

  color: #ffffff;

  font-size: clamp(28px, 3.2vw, 43px);

  line-height: 1;

  font-weight: 700;

  letter-spacing: -0.05em;
}

.industry-feature-content h3 span {
  display: block;
  color: #9ab8f5;
}

.industry-feature-content p {
  max-width: 490px;

  margin: 14px 0 0;

  color: rgba(255, 255, 255, 0.62);

  font-size: 11px;

  line-height: 1.7;
}

/* =========================================================
   FOOTER LINE
========================================================= */

.industries-footer {
  display: flex;

  align-items: center;

  gap: 24px;

  width: min(1160px, calc(100% - 40px));

  margin: 25px auto 0;
}

.industries-footer-line {
  flex: 1;

  height: 1px;

  background: rgba(5, 34, 94, 0.07);
}

.industries-footer-content {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  color: #8a97aa;

  font-size: 7px;

  font-weight: 800;

  letter-spacing: 0.15em;

  white-space: nowrap;
}

.footer-dot {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: var(--red);
}

.footer-divider {
  color: #c2cad5;
}

.industries-footer-content strong {
  color: #0646bd;
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes industryGlowOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.6;
  }

  50% {
    transform: translate3d(-15px, 12px, 0);
    opacity: 1;
  }
}

@keyframes industryGlowTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.45;
  }

  50% {
    transform: translate3d(15px, -10px, 0);
    opacity: 0.8;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .industries-section {
    padding: 80px 0 70px;
  }

  .industries-container {
    width: min(100% - 48px, 900px);
  }

  .industries-header {
    margin-bottom: 42px;
  }

  .industries-heading-row {
    grid-template-columns: 1fr;

    gap: 22px;
  }

  .industries-heading-row h2 {
    max-width: 720px;

    font-size: clamp(42px, 6vw, 58px);
  }

  .industries-heading-row p {
    max-width: 600px;
  }

  .industries-showcase {
    grid-template-columns: 1fr;

    min-height: auto;
  }

  .industry-list {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    padding: 16px 0 0;
  }

  .industry-item {
    min-height: 58px;
  }

  .industry-item:nth-child(even) {
    padding-left: 18px;

    border-left: 1px solid rgba(5, 34, 94, 0.08);
  }

  .industry-feature {
    padding: 20px 0 0;
  }

  .industry-image-wrap {
    min-height: 430px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .industries-section {
    padding: 70px 0 60px;
  }

  .industries-container {
    width: calc(100% - 32px);
  }

  .industries-header {
    margin-bottom: 38px;
  }

  .industries-eyebrow {
    gap: 11px;

    font-size: 8px;

    letter-spacing: 0.18em;
  }

  .industries-eyebrow .eyebrow-mark {
    width: 34px;
  }

  .industries-heading-row {
    margin-top: 20px;
    gap: 20px;
  }

  .industries-heading-row h2 {
    font-size: clamp(38px, 10vw, 52px);

    line-height: 0.99;
  }

  .industries-heading-row p {
    padding-left: 17px;

    font-size: 11px;

    line-height: 1.7;
  }

  .industry-list {
    grid-template-columns: 1fr;

    padding-top: 8px;
  }

  .industry-item,
  .industry-item:nth-child(even) {
    min-height: 57px;

    padding-left: 0;
    padding-right: 2px;

    border-left: 0;
  }

  .industry-item:hover,
  .industry-item.active {
    padding-left: 9px;
  }

  .industry-arrow {
    opacity: 1;

    transform: none;

    width: 24px;
    height: 24px;
  }

  .industry-item.active .industry-arrow {
    color: #ffffff;
    background: var(--blue);
  }

  .industry-name {
    font-size: 13px;
  }

  .industry-feature {
    padding-top: 17px;
  }

  .industry-image-wrap {
    min-height: 380px;
  }

  .industry-image-top {
    left: 18px;
    right: 18px;
    top: 18px;
  }

  .industry-feature-content {
    left: 20px;
    right: 20px;
    bottom: 21px;
  }

  .industry-feature-content h3 {
    font-size: clamp(27px, 8vw, 38px);
  }

  .industry-feature-content p {
    margin-top: 12px;
    font-size: 10.5px;
  }

  .industries-footer {
    width: calc(100% - 24px);
    gap: 14px;
  }

  .industries-footer-content {
    gap: 6px;

    font-size: 6.5px;

    letter-spacing: 0.1em;
  }

  .industries-watermark {
    right: -100px;
    top: 30px;
    font-size: 380px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
  .industries-container {
    width: calc(100% - 24px);
  }

  .industries-heading-row h2 {
    font-size: 38px;
  }

  .industry-image-wrap {
    min-height: 350px;
  }

  .industry-feature-content h3 {
    font-size: 28px;
  }

  .industry-feature-content p {
    font-size: 10px;
  }

  .industries-footer {
    width: calc(100% - 20px);
  }
}

/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 375px) {
  .industries-container {
    width: calc(100% - 20px);
  }

  .industries-heading-row h2 {
    font-size: 35px;
  }

  .industry-image-wrap {
    min-height: 330px;
  }

  .industry-feature-content {
    left: 17px;
    right: 17px;
    bottom: 18px;
  }

  .industry-feature-content h3 {
    font-size: 26px;
  }

  .industries-footer {
    width: calc(100% - 16px);
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .industries-glow,
  .industry-image {
    animation: none !important;
    transition: none !important;
  }
}
