/* ==========================================================================
   Connect — closing two-column block. Left: heading (character reveal, glass
   accent), one line of copy and a solid pill for clients. Right: translucent
   card for suppliers with eyebrow, heading, text and a glass pill carrying the
   partnerships address. Stacked on phones. Copy lines and the card follow once
   the heading has been revealed (js/connect.js). Typography from base.css,
   pills follow the hero's recipe, the card's light rim the former quote card.
   ========================================================================== */
.home-connect {
  --connect-accent: rgba(255, 193, 126, .9);       /* same warm tone as the logo glow */
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.home-connect__grid {
  display: grid;
  gap: 2.75rem;
  margin-inline: auto;
  max-width: 1180px;
}

/* --------------------------------------------------------------------------
   Left column — clients
   -------------------------------------------------------------------------- */
.home-connect__copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.home-connect__heading {
  font-size: 30px;
  line-height: 36px;
  max-width: 12em;
  text-shadow: 0 0 8px rgba(255, 239, 225, .3);
}

.home-connect__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.home-connect__text {
  margin: 0;
  max-width: 26em;
}

.home-connect__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   Pills — same recipe as the hero buttons
   -------------------------------------------------------------------------- */
.home-connect__pill {
  align-items: center;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  height: 45px;
  justify-content: center;
  letter-spacing: -.01em;
  line-height: 1.5;
  max-width: 100%;
  min-width: 13.5rem;
  padding: 0 22px;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  z-index: 1;
}

.home-connect__pill--solid {
  background: #ffffffe0;
  color: #000000b8;
  transition: background .3s ease, transform .45s var(--home-ease-out);
}

.home-connect__pill--solid:hover {
  background: #fff;
}

.home-connect__pill--glass {
  align-self: flex-start;
  background: #ffffff1a;
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  color: #fff;
  transition: background .3s ease, transform .45s var(--home-ease-out);
}

.home-connect__pill--glass:hover {
  background: #ffffff29;
}

/* --------------------------------------------------------------------------
   Right column — suppliers card. Flies in like the charter photo once the
   heading is revealed.
   -------------------------------------------------------------------------- */
.home-connect__card {
  --card-radius: 24px;
  background: linear-gradient(180deg, #302419d9, #1f1b1799 58%, #1f1d1766);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--card-radius);
  display: flex;
  filter: blur(10px);
  flex-direction: column;
  gap: 1rem;
  isolation: isolate;
  opacity: 0;
  padding: 1.75rem 1.5rem;
  position: relative;
  text-align: left;
  transform: translate3d(0, 2.75rem, 0);
  transition: opacity 1.15s var(--home-ease), transform 1.15s var(--home-ease), filter 1.15s var(--home-ease);
  transition-delay: .12s;
}

.home-connect__card--in {
  filter: none;
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .home-connect__card {
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    backdrop-filter: blur(18px) saturate(120%);
  }
}

/* thin light rim along the top edge (sharp line + blurred warm glow) */
.home-connect__rim,
.home-connect__rim::before,
.home-connect__rim::after {
  border-radius: inherit;
  inset: -1px;
  pointer-events: none;
  position: absolute;
}

.home-connect__rim {
  z-index: -1;
}

.home-connect__rim::before,
.home-connect__rim::after {
  --rim-along: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .42) 20%, #000 50%, rgba(0, 0, 0, .42) 80%, rgba(0, 0, 0, .28));
  --rim-down: linear-gradient(180deg, #000 0%, #000 40%, transparent 80%);
  border: 1.5px solid rgba(255, 250, 242, .88);
  border-bottom: none;
  content: "";
  -webkit-mask-composite: source-in, xor;
  mask-composite: intersect;
  mask-image: var(--rim-along), var(--rim-down);
  -webkit-mask-image: var(--rim-along), var(--rim-down);
}

.home-connect__rim::after {
  --rim-down: linear-gradient(180deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .4) 36%, rgba(0, 0, 0, .16) 64%, transparent);
  border-color: #ffd6aa8c;
  border-width: 2.5px;
  filter: blur(8px);
}

.home-connect__eyebrow {
  color: var(--connect-accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1;
  margin: 0 0 .25rem;
  text-transform: uppercase;
}

.home-connect__card-heading {
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 30px;
  margin: 0;
}

.home-connect__accent {
  color: #fff;
  font-family: var(--font-accent);
  font-size: 1.06em;
  font-style: italic;
  letter-spacing: -.03em;
}

.home-connect__card-text {
  color: #ffffffa8;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 25px;
  margin: 0 0 .5rem;
  max-width: 26em;
}

/* --------------------------------------------------------------------------
   Desktop: two columns
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .home-connect {
    padding: 0 6.25rem;
  }

  .home-connect__grid {
    align-items: center;
    gap: 4.5rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }

  .home-connect__copy {
    gap: 1.5rem;
  }

  .home-connect__heading {
    font-size: 42px;
    line-height: 50px;
  }

  .home-connect__card {
    --card-radius: 28px;
    gap: 1.1rem;
    padding: 2.25rem 2.25rem 2.25rem;
  }

  .home-connect__card-heading {
    font-size: 28px;
    line-height: 34px;
  }
}

@media (max-width: 767px) {
  .home-connect__card {
    filter: none;      /* no blur on phones, like the other copy */
  }
}

@media (max-width: 420px) {
  .home-connect__pill {
    min-width: 0;
    width: 100%;
  }

  .home-connect__pill--glass {
    align-self: stretch;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-connect__card {
    transition: none;
  }
}
