.benefits-content {
  --benefits-navy: #001d3d;
  --benefits-blue: #0052d9;
  --benefits-blue-dark: #001d3d;
  --benefits-cyan: #0052d9;
  --benefits-text: #2f3744;
  --benefits-muted: #596170;
  --benefits-line: #e2e7ef;
  --benefits-mist: #f5f7fa;
  --benefits-white: #ffffff;
  overflow: hidden;
  background: var(--benefits-white);
  color: var(--benefits-text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

/* The careers banner uses a darker technical treatment so its copy remains legible over the circuit imagery. */
subpage-banner .subpage-banner-overlay {
  background: linear-gradient(90deg, rgba(0, 24, 54, .92) 0%, rgba(0, 36, 77, .68) 48%, rgba(0, 36, 77, .18) 100%);
}

subpage-banner .subpage-banner h1 {
  color: #ffffff;
  letter-spacing: .08em;
  text-shadow: 0 4px 24px rgba(0, 12, 28, .55);
}

subpage-banner .subpage-banner p {
  color: rgba(255, 255, 255, .96);
  font-weight: 500;
  letter-spacing: .025em;
  text-shadow: 0 2px 14px rgba(0, 12, 28, .48);
}

.benefits-content *,
.benefits-content *::before,
.benefits-content *::after {
  box-sizing: border-box;
}

.benefits-container {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

.benefits-section {
  padding: 88px 0;
}

.benefits-content h2,
.benefits-content h3,
.benefits-content p,
.benefits-content figure {
  margin-top: 0;
}

.benefits-content h2,
.benefits-content h3 {
  color: var(--benefits-navy);
  font-weight: 700;
  letter-spacing: 0;
}

.benefits-content h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.35;
}

.benefits-content h3 {
  font-size: 20px;
  line-height: 1.45;
}

.benefits-content p {
  color: var(--benefits-muted);
}

.benefits-content img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefits-section-heading {
  max-width: none;
  margin: 0 auto 44px;
  text-align: center;
}

.benefits-section-heading > span {
  display: block;
  width: 64px;
  height: 3px;
  margin: 0 auto 20px;
  background: var(--benefits-cyan);
}

.benefits-section-heading p {
  margin-bottom: 0;
  white-space: nowrap;
}

.benefits-care {
  background: var(--benefits-white);
}

.benefits-care__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.benefits-care__card {
  position: relative;
  min-height: 260px;
  padding: 28px 26px;
  overflow: hidden;
  border: 1px solid var(--benefits-line);
  border-radius: 6px;
  background: #f5f7fa;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.benefits-care__card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--benefits-blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.benefits-care__card:hover {
  border-color: #edf3ff;
  background: var(--benefits-white);
  box-shadow: 0 18px 42px rgba(12, 35, 64, .11);
  transform: translateY(-7px);
}

.benefits-care__card:hover::before {
  transform: scaleX(1);
}

.benefits-care__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--benefits-blue);
  background: #edf3ff;
  font-size: 28px;
  transition: color .3s ease, background-color .3s ease, transform .3s ease;
}

.benefits-care__card:hover .benefits-care__icon {
  color: var(--benefits-white);
  background: var(--benefits-blue);
  transform: translateY(-3px);
}

.benefits-care__card h3 {
  margin: 0 0 12px;
}

.benefits-care__card p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.75;
}

.benefits-living {
  background: var(--benefits-mist);
}

.benefits-living__layout {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: clamp(40px, 4.5vw, 60px);
  align-items: center;
}

.benefits-living__copy {
  position: relative;
  padding-left: 28px;
}

.benefits-living__copy::before {
  position: absolute;
  top: 6px;
  bottom: 2px;
  left: 0;
  width: 3px;
  background: var(--benefits-cyan);
  content: "";
}

.benefits-living__lead {
  max-width: 610px;
  margin-bottom: 28px;
}

.benefits-living__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.benefits-living__list article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
}

.benefits-living__list > article > .material-symbols-outlined {
  color: var(--benefits-blue);
  font-size: 27px;
}

.benefits-living__list h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.benefits-living__list p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.65;
}

.benefits-living__collage {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 430px;
}

.benefits-living__photo {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #e2e7ef;
  box-shadow: 0 14px 32px rgba(12, 35, 64, .1);
}

.benefits-living__photo--feature { grid-column: 1; grid-row: 1 / 3; }
.benefits-living__photo--community { grid-column: 2; grid-row: 1; }
.benefits-living__photo--court { grid-column: 2; grid-row: 2; }

.benefits-living__collage figure {
  height: auto;
}

.benefits-living__collage img {
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), filter .4s ease;
}

.benefits-living__collage figure:hover img {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.055);
}

.benefits-gallery {
  padding: 88px 0 104px !important;
  background: var(--benefits-mist);
}

.benefits-gallery .benefits-section-heading {
  max-width: 760px;
  margin: 0 0 42px !important;
  text-align: left;
}

.benefits-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 236px !important;
  gap: 18px !important;
}

.benefits-gallery__item {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  color: var(--benefits-white);
  background: var(--benefits-navy);
}

.benefits-gallery__item > a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.benefits-gallery__item:focus-within {
  outline: 3px solid rgba(0, 82, 217, .32);
  outline-offset: 3px;
}

.benefits-gallery__item--main {
  grid-column: span 2;
  grid-row: span 2;
}

.benefits-gallery__item::after {
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(to top, rgba(12, 35, 64, .92), rgba(12, 35, 64, 0));
  pointer-events: none;
  content: "";
}

.benefits-gallery__item img {
  transition: transform .55s ease, filter .35s ease;
}

.benefits-gallery__item:hover img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.045);
}

.benefits-gallery__item figcaption {
  position: absolute;
  z-index: 1;
  right: 26px;
  bottom: 24px;
  left: 26px;
  display: grid;
  color: var(--benefits-white);
}

.benefits-gallery__item figcaption small {
  color: #edf3ff;
  font-size: 14px;
  font-weight: 700;
}

.benefits-gallery__item figcaption strong {
  margin-top: 7px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.benefits-gallery__item figcaption span {
  max-height: 24px;
  margin-top: 10px;
  overflow: hidden;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height .3s ease, margin .3s ease, opacity .3s ease, transform .3s ease;
}

.benefits-gallery__item:hover figcaption span {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(8px);
}

.benefits-cta {
  position: relative;
  padding: 76px 0;
  overflow: hidden;
  border-top: 1px solid #d7e3f1;
  border-bottom: 1px solid #d7e3f1;
  background: #eaf1f8;
  text-align: center;
}

.benefits-cta__inner {
  position: relative;
  z-index: 1;
}

.benefits-cta h2 {
  margin-bottom: 30px;
  color: var(--benefits-navy);
}

.benefits-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.benefits-cta__actions a {
  display: inline-flex;
  min-width: 178px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid var(--benefits-blue);
  border-radius: 3px;
  color: var(--benefits-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.benefits-cta__actions a:hover {
  border-color: var(--benefits-blue);
  color: var(--benefits-white);
  background: var(--benefits-blue);
  transform: translateY(-2px);
}

.benefits-cta__actions .is-primary {
  border-color: var(--benefits-blue);
  color: var(--benefits-white);
  background: var(--benefits-blue);
}

.benefits-cta__actions .is-primary:hover {
  border-color: var(--benefits-blue-dark);
  background: var(--benefits-blue-dark);
}

.benefits-cta__actions a:focus-visible {
  outline: 3px solid rgba(30, 90, 150, .45);
  outline-offset: 3px;
}

.benefits-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}

.benefits-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.benefits-care__card:nth-child(2),
.benefits-gallery__item:nth-child(2) { transition-delay: 80ms; }
.benefits-care__card:nth-child(3),
.benefits-gallery__item:nth-child(3) { transition-delay: 150ms; }
.benefits-care__card:nth-child(4) { transition-delay: 220ms; }

@media (max-width: 1024px) {
  .benefits-section { padding: 72px 0; }
  .benefits-care__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits-care__card { min-height: 230px; }
  .benefits-living__layout { grid-template-columns: 1fr 1fr; gap: 34px; }
  .benefits-living__list { grid-template-columns: 1fr; }
  .benefits-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; }
  .benefits-gallery__item--main { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 760px) {
  .benefits-container { width: calc(100% - 40px); }
  .benefits-section { padding: 56px 0; }
  .benefits-content h2 { font-size: 30px; }
  .benefits-section-heading { margin-bottom: 34px; text-align: left; }
  .benefits-section-heading > span { margin-right: 0; margin-left: 0; }
  .benefits-care__grid { grid-template-columns: 1fr; }
  .benefits-care__card {
    min-height: 0;
    padding: 22px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
  }
  .benefits-care__icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    margin: 0;
    font-size: 25px;
  }
  .benefits-care__card h3,
  .benefits-care__card p { grid-column: 2; }
  .benefits-living__layout { grid-template-columns: 1fr; gap: 32px; }
  .benefits-living__copy { padding-left: 20px; }
  .benefits-living__collage { min-height: 360px; }
  .benefits-section-heading p { white-space: normal; }
  .benefits-gallery { padding: 64px 0 68px !important; }
  .benefits-gallery .benefits-section-heading { margin-bottom: 32px; }
  .benefits-gallery__grid { grid-template-columns: 1fr; grid-auto-rows: auto !important; gap: 14px !important; }
  .benefits-gallery__item,
  .benefits-gallery__item--main { min-height: 0; height: 300px; grid-column: 1; grid-row: span 1; }
  .benefits-gallery__item--main { height: 420px; }
  .benefits-cta { padding: 64px 0; }
  .benefits-cta::before,
  .benefits-cta::after { display: none; }
}

@media (max-width: 480px) {
  .benefits-living__collage { min-height: 300px; gap: 6px; }
  .benefits-gallery__grid { grid-auto-rows: auto; }
  .benefits-gallery__item,
  .benefits-gallery__item--main { min-height: 0; }
  .benefits-gallery__item figcaption,
  .benefits-gallery__item--main figcaption { right: 20px; bottom: 18px; left: 20px; }
  .benefits-gallery__item figcaption strong { font-size: 22px; }
  .benefits-cta__actions { flex-direction: column; }
  .benefits-cta__actions a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .benefits-content *,
  .benefits-content *::before,
  .benefits-content *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .benefits-reveal {
    opacity: 1;
    transform: none;
  }
}
