/* ==========================================================================
   Home: "Industries We Build For" — six industries, each with its 3D illustration.
   Class names avoid the "-card" suffix, which luxury.js would otherwise animate.
   Shared type sizes and section spacing come from css/home-scale.css.
   ========================================================================== */

.ind2-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 0 96px;
  background: linear-gradient(180deg, #F8FAFD 0%, #F1F6FD 100%);
  font-family: var(--font-sans);
}

.ind2-wave {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.ind2-wave--left {
  top: -200px;
  left: -240px;
  width: 600px;
  height: 480px;
  background: radial-gradient(closest-side, rgba(191, 219, 254, 0.8), rgba(191, 219, 254, 0));
}

.ind2-wave--right {
  right: -220px;
  bottom: -240px;
  width: 600px;
  height: 500px;
  background: radial-gradient(closest-side, rgba(147, 197, 253, 0.6), rgba(147, 197, 253, 0));
}

.ind2-inner {
  max-width: 1440px;
}

/* ---- Heading ---- */
.ind2-header {
  max-width: 860px;
  margin: 0 auto 56px;
  text-align: center;
}

.ind2-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  background: #E8F1FD;
  color: #1D4ED8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ind2-pill svg {
  width: 18px;
  height: 18px;
}

.ind2-pill-sep {
  width: 1px;
  height: 16px;
  background: #93C5FD;
}

.ind2-heading {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #071827;
  text-wrap: balance;
}

.ind2-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  color: #1D4ED8;
}

.ind2-swoosh {
  position: absolute;
  left: 4%;
  bottom: -8px;
  width: 96%;
  height: 16px;
}

.ind2-sub {
  max-width: 740px;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: #334155;
  text-wrap: pretty;
}

/* ---- Grid ---- */
.ind2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ind2-item {
  --tone: #2563EB;
  --tone-soft: #DBEAFE;
  --tone-arc: #93C5FD;
  height: 100%;
}

.ind2-item:nth-child(even) {
  --tone: #4F46E5;
  --tone-soft: #E0E7FF;
  --tone-arc: #A5B4FC;
}

.ind2-link {
  position: relative;
  isolation: isolate;
  display: flex;
  height: 100%;
  min-height: 272px;
  overflow: hidden;
  padding: 28px 28px 26px;
  border: 1px solid #E3EBF6;
  border-radius: 26px;
  background: #FFFFFF;
  box-shadow: 0 20px 44px -30px rgba(11, 34, 57, 0.45);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* the soft colour sweep behind the illustration */
.ind2-link::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -22%;
  width: 66%;
  height: 140%;
  border-radius: 46% 0 0 54%;
  background: linear-gradient(200deg, var(--tone-arc) 0%, var(--tone-soft) 55%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.85;
  transform: rotate(-8deg);
}

.ind2-link:hover {
  border-color: #BFDBFE;
  transform: translateY(-4px);
  box-shadow: 0 30px 52px -30px rgba(20, 92, 161, 0.5);
}

.ind2-link:focus-visible {
  outline: 3px solid #2563EB;
  outline-offset: 3px;
}

.ind2-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* the title runs the full width; the lines under it leave room for the picture */
.ind2-desc,
.ind2-tags {
  max-width: 58%;
}

.ind2-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ind2-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid #E3EBF6;
  border-radius: 15px;
  background: linear-gradient(145deg, #FFFFFF, var(--tone-soft));
  color: var(--tone);
  box-shadow: 0 10px 20px -14px rgba(11, 34, 57, 0.45);
}

.ind2-icon svg {
  width: 26px;
  height: 26px;
}

.ind2-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #071827;
}

.ind2-desc {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: #334155;
}

.ind2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ind2-tags li {
  margin: 0;
  padding: 4px 10px;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  color: #0B2239;
  white-space: nowrap;
}

.ind2-cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: #1D4ED8;
  font-size: 15.5px;
  font-weight: 700;
}

.ind2-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.ind2-link:hover .ind2-cta svg {
  transform: translateX(4px);
}

.ind2-art {
  position: absolute;
  z-index: 0;
  right: 14px;
  bottom: 22px;
  width: 39%;
  max-height: 64%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 18px 20px rgba(30, 64, 175, 0.18));
  transition: transform 0.35s ease;
  pointer-events: none;
}

.ind2-more {
  margin-top: 44px;
  text-align: center;
}

.ind2-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1D4ED8;
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.ind2-more a svg {
  width: 18px;
  height: 18px;
}

/* ---- Responsive ---- */
@media (max-width: 1439px) {
  .ind2-grid {
    gap: 22px;
  }

  .ind2-link {
    padding: 24px 22px 22px;
  }

  .ind2-title {
    font-size: 19px;
  }

  .ind2-desc {
    font-size: 14.5px;
  }
}

@media (max-width: 1199px) {
  .ind2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ind2-title {
    font-size: 21px;
  }

  .ind2-desc {
    font-size: 15.5px;
  }
}

@media (max-width: 819px) {
  .ind2-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ind2-desc,
  .ind2-tags {
    max-width: 60%;
  }
}

/* phones: illustration under the text */
@media (max-width: 560px) {
  .ind2-section {
    padding: 72px 0;
  }

  .ind2-header {
    margin-bottom: 40px;
  }

  .ind2-sub {
    font-size: 16px;
  }

  .ind2-link {
    flex-direction: column;
    min-height: 0;
    padding: 22px 20px 20px;
  }

  .ind2-link::before {
    top: auto;
    bottom: -40%;
    right: -30%;
    width: 100%;
    height: 80%;
  }

  .ind2-desc,
  .ind2-tags {
    max-width: none;
  }

  .ind2-title {
    font-size: 20px;
  }

  .ind2-art {
    position: static;
    order: 2;
    width: 62%;
    max-height: none;
    margin: 18px 0 0 auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  .ind2-link,
  .ind2-art,
  .ind2-cta svg {
    transition: none;
  }

  .ind2-link:hover {
    transform: none;
  }
}

/* the illustration lifts a little on hover (not on phones, where it sits in the flow) */
@media (prefers-reduced-motion: no-preference) and (min-width: 561px) {
  .ind2-link:hover .ind2-art {
    transform: translateY(-6px);
  }
}
