.home-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 54px;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(129, 185, 208, .5);
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #edf6f9 60%, #dbeef5 100%);
  box-shadow: 0 28px 70px rgba(20, 42, 67, .1);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(36px, 7vw, 78px);
}

.hero-copy h1 {
  max-width: 700px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: .94;
}

.home-intro {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--soft-ink);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-water {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(150deg, transparent 15%, rgba(52,127,172,.08) 15% 52%, transparent 52%);
}

.hero-water span {
  position: absolute;
  right: -95px;
  width: 520px;
  height: 135px;
  border-top: 2px solid rgba(52, 127, 172, .24);
  border-radius: 50% 50% 0 0;
  transform: rotate(-8deg);
}

.hero-water span:nth-child(1) { top: 30%; }
.hero-water span:nth-child(2) { top: 49%; right: -35px; width: 590px; opacity: .72; }
.hero-water span:nth-child(3) { top: 68%; right: -145px; width: 690px; opacity: .5; }

.explorer-section { padding: 64px 0 8px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.045em; }
.section-intro { max-width: 640px; margin: 12px 0 0; color: var(--soft-ink); font-size: 1rem; line-height: 1.6; }

.explorer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.explorer-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.explorer-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 130px;
  border: 22px double rgba(52, 127, 172, .08);
  border-radius: 50%;
  content: "";
  transform: rotate(-12deg);
}

.explorer-card:hover { transform: translateY(-4px); border-color: var(--sky); box-shadow: 0 24px 55px rgba(20, 42, 67, .13); }
.explorer-card:focus-visible { outline: 3px solid rgba(52, 127, 172, .3); outline-offset: 3px; }
.card-number { color: var(--sky); font-size: .82rem; font-weight: 700; letter-spacing: .12em; }
.card-kicker { margin: 0 0 10px; color: var(--blue); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.explorer-card h3 { margin: 0; color: var(--navy); font-size: 1.65rem; letter-spacing: -.035em; }
.explorer-card p:not(.card-kicker) { margin: 14px 0 0; color: var(--soft-ink); font-size: .95rem; line-height: 1.6; }
.card-link { position: relative; z-index: 1; color: var(--navy); font-size: .9rem; font-weight: 680; }
.card-link span { display: inline-block; margin-left: 5px; transition: transform 180ms ease; }
.explorer-card:hover .card-link span { transform: translateX(4px); }

.qualifications-card { background: linear-gradient(155deg, #fff 40%, #f0f7fa); }
.travel-card { background: linear-gradient(155deg, #fff 40%, #eef6f3); }
.second-collection { padding-top: 54px; }
.employment-card { background: linear-gradient(145deg, #fff 32%, #eaf3f7); }
.support-card-home { background: linear-gradient(145deg, #fff 32%, #eef4ed); }
.deprivation-card { background: linear-gradient(145deg, #fff 32%, #edf5ef); }
.housing-card-home { background: linear-gradient(145deg, #fff 32%, #f5eee5); }
.population-card-home { background: linear-gradient(145deg, #fff 32%, #e8f3f1); }
.care-card-home { background: linear-gradient(145deg, #fff 32%, #edf1f7); }
.wide-card { grid-column: 1 / -1; display: grid; min-height: 220px; grid-template-columns: 70px minmax(0,1fr) auto; gap: 28px; align-items: center; }
.wide-card .card-link { align-self: end; }

.ripple-panel {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 56px;
  padding: 32px 36px;
  border-radius: 22px;
  background: var(--navy);
  color: white;
}

.ripple-mark { position: relative; width: 110px; height: 74px; }
.ripple-mark span { position: absolute; top: 50%; left: 50%; border: 2px solid rgba(129,185,208,.78); border-radius: 50%; transform: translate(-50%,-50%); }
.ripple-mark span:nth-child(1) { width: 32px; height: 18px; background: rgba(129,185,208,.15); }
.ripple-mark span:nth-child(2) { width: 70px; height: 38px; }
.ripple-mark span:nth-child(3) { width: 108px; height: 62px; }
.ripple-title { margin: 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -.025em; }
.ripple-title span { display: block; margin-top: 4px; color: var(--sky); font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.ripple-copy { max-width: 680px; margin: 13px 0 0; color: #dcecf4; font-size: .95rem; line-height: 1.6; }

@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-water { position: absolute; inset: 0 0 0 55%; opacity: .7; }
  .hero-copy { padding-right: 30%; }
  .explorer-grid { grid-template-columns: 1fr; }
  .explorer-card { min-height: 280px; }
  .wide-card { min-height: 260px; grid-template-columns: 52px minmax(0,1fr); }
  .wide-card .card-link { grid-column: 2; }
}

@media (max-width: 620px) {
  .home-hero { min-height: 480px; }
  .hero-copy { align-self: end; padding: 34px 28px; }
  .hero-water { inset: -130px -150px auto 20%; height: 400px; }
  .home-intro { font-size: 1rem; }
  .explorer-section { padding-top: 48px; }
  .ripple-panel { grid-template-columns: 1fr; padding: 28px; }
  .ripple-mark { width: 88px; }
  .wide-card { display: flex; min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .explorer-card, .card-link span { transition: none; }
}
