/* ==========================================================================
   Where It Lands First — AI Gateway page, below the policy section.
   Reworked to avoid repeating the collapsed-cell grid used by "How It Works":
   now a VERTICAL editorial row list — big blue-gradient department name on the
   left, description on the right, hairline-separated, with a sliding accent on
   hover. Warm panel (#f7f6f2). Blue primary (#0036FA → #4E87FC).
   Motion: reveal + per-row stagger (~0.55s ease).
   ========================================================================== */

.pg-dept {
  background-color: #f4f7fd;
  padding: 100px 0;
}

.pg-dept__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.pg-dept__kicker {
  font-family: "Cabin", sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #0036fa, #4e87fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pg-dept__title {
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #12140f;
  margin-top: 18px;
}

/* --- vertical editorial rows --- */
.pg-dept__rows {
  margin-top: 40px;
  border-top: 1px solid #ded9cd;
}

.pg-dept__row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: baseline;
  padding: 30px 16px 30px 0;
  border-bottom: 1px solid #ded9cd;
  position: relative;
  transition: padding-left 0.4s ease;
}

.pg-dept__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 34px;
  width: 0;
  height: 30px;
  border-radius: 2px;
  background: linear-gradient(180deg, #0036fa, #4e87fc);
  transition: width 0.4s ease;
}

.pg-dept__row:hover {
  padding-left: 22px;
}

.pg-dept__row:hover::before {
  width: 3px;
}

.pg-dept__row-name {
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #0036fa, #4e87fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pg-dept__row-text {
  font-family: "Cabin", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #4d4d4d;
  max-width: 720px;
}

/* --- scroll-reveal --- */
.pg-dept__head,
.pg-dept__row {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease, padding-left 0.4s ease;
}

.pg-dept__head.is-in,
.pg-dept__row.is-in {
  opacity: 1;
  transform: none;
}

.pg-dept__row.is-in:nth-of-type(1) { transition-delay: 0.05s; }
.pg-dept__row.is-in:nth-of-type(2) { transition-delay: 0.12s; }
.pg-dept__row.is-in:nth-of-type(3) { transition-delay: 0.19s; }
.pg-dept__row.is-in:nth-of-type(4) { transition-delay: 0.26s; }
.pg-dept__row.is-in:nth-of-type(5) { transition-delay: 0.33s; }

@media (prefers-reduced-motion: reduce) {
  .pg-dept__head,
  .pg-dept__row {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- responsive --- */
@media (max-width: 1040px) {
  .pg-dept {
    padding: 80px 0;
  }
  .pg-dept__inner {
    padding: 0 24px;
  }
  .pg-dept__title {
    font-size: 32px;
  }
  .pg-dept__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .pg-dept__title {
    font-size: 28px;
  }
  .pg-dept__row-name {
    font-size: 22px;
  }
}
