.mag-home {
  --home-navy: var(--navy);
  --home-blue: color-mix(in srgb, var(--accent) 50%, var(--home-navy));
  --home-muted: var(--muted);
  --home-line: #d6dee7;
  background: #fff;
  color: #111827;
}

.mag-home .wrap { width: min(1240px, calc(100% - 40px)); }

.mag-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #111827;
  color: white;
}

.mag-home .home-hero-image, .mag-home .home-hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mag-home .home-hero-image { z-index: -2; object-fit: cover; }
.mag-home .home-hero::before {
  z-index: -1;
  content: '';
  background: linear-gradient(90deg, #071522f2, #071522b3 50%, #07152226);
}

.mag-home .home-hero .wrap {
  display: flex;
  align-items: center;
  min-height: 650px;
  padding-block: 80px;
}

.mag-home .home-hero-content { width: min(100%, 672px); }
.mag-home .home-eyebrow {
  margin: 0 0 9px;
  color: var(--home-blue);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .2em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.mag-home .home-hero .home-eyebrow, .mag-home .home-contact .home-eyebrow { color: #a9d7f7; }
.mag-home .home-hero h1 {
  margin: 16px 0;
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: normal;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.mag-home .home-hero-description {
  max-width: 576px;
  margin: 0;
  color: #f1f4f8;
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.mag-home .home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(100%, 576px);
  gap: 12px;
  padding: 12px;
  margin-top: 28px;
  background: #fff;
}

.mag-home .home-search label {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  gap: 12px;
  padding-inline: 16px;
  border: 1px solid #b9c5d1;
  color: var(--home-navy);
  cursor: text;
}

.mag-home .home-search label:focus-within { outline: 2px solid var(--home-blue); outline-offset: 1px; }
.mag-home .home-search input {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-size: .875rem;
}

.mag-home .home-search input:focus-visible { outline: 0; }
.mag-home .home-search input::placeholder { color: var(--home-muted); opacity: 1; }
.mag-home .home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 25px;
  border: 0;
  border-radius: 0;
  background: var(--home-navy);
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.mag-home .home-button:hover { background: #1c2841; }
.mag-home .home-search .home-button { background: var(--home-blue); padding-inline: 28px; font-size: 1rem; }
.mag-home .home-search .home-button:hover { background: var(--home-navy); }
.mag-home .home-section, .mag-home .home-neighborhoods, .mag-home .home-contact { padding-block: 56px; }
.mag-home :is(.home-section-heading, .home-neighborhoods, .home-contact) h2 { margin: 0; font-size: 1.875rem; font-weight: 700; line-height: 1.2; letter-spacing: normal; }
.mag-home .home-section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; }
.mag-home .home-text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: .875rem; color: var(--home-navy); }
.mag-home .home-text-link:hover { color: var(--home-blue); }
.mag-home .home-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.mag-home .home-empty { margin: 0; color: var(--home-muted); }
.mag-home .listing-info h3 { margin: 0 0 7px; font-size: 1.125rem; line-height: 1.5rem; }
.mag-home .home-neighborhoods { background: #eef3f8; }
.mag-home .home-neighborhoods .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.mag-home .home-neighborhoods h2 + p { margin: 16px 0 24px; color: var(--home-muted); font-size: .875rem; line-height: 1.75rem; }
.mag-home .home-neighborhoods ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mag-home .home-neighborhoods li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 80px;
  padding: 14px 18px;
  gap: 10px;
  border: 1px solid var(--home-line);
  background: #fff;
  color: #111827;
  text-decoration: none;
}

.mag-home .home-neighborhoods li a:hover { color: var(--home-blue); border-color: var(--home-blue); }
.mag-home .home-neighborhoods li strong { display: block; overflow-wrap: anywhere; }
.mag-home svg { flex-shrink: 0; vertical-align: middle; }
.mag-home .home-launch-card { min-width: 0; overflow: hidden; border: 1px solid var(--home-line); background: #fff; }
.mag-home .home-launch-card a { display: block; height: 100%; text-decoration: none; color: inherit; }
.mag-home .home-launch-card a:focus-visible { outline-offset: -3px; }
.mag-home .home-launch-card a:hover h3 { color: var(--home-blue); text-decoration: underline; }
.mag-home .home-launch-image { display: grid; place-items: center; height: 192px; background: #eef3f8; color: var(--home-muted); overflow: hidden; }
.mag-home .home-launch-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mag-home .home-launch-info { padding: 20px; }
.mag-home .home-launch-info .home-eyebrow { font-size: .68rem; letter-spacing: .13em; }
.mag-home .home-launch-info h3 { margin: 0; font-size: 1.1rem; line-height: 1.28; overflow-wrap: anywhere; }
.mag-home .home-launch-info h3 + p { margin: 8px 0 0; font-size: .82rem; color: var(--home-muted); overflow-wrap: anywhere; }
.mag-home .home-contact { text-align: center; background: var(--home-navy); color: #fff; }
.mag-home .home-contact h2 { max-width: 672px; margin: 12px auto 0; }
.mag-home .home-contact .home-button { margin-top: 24px; background: #fff; color: var(--home-navy); }
.mag-home .home-contact .home-button:hover { background: #eef3f8; }

@media (max-width: 1279px) {
  .mag-home .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .mag-home .home-hero .wrap { min-height: 560px; align-items: end; padding-block: 48px; }
  .mag-home .home-hero h1 { font-size: 3rem; }
  .mag-home .home-neighborhoods .wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 639px) {
  .mag-home .home-hero h1 { font-size: 2.25rem; }
  .mag-home .home-cards, .mag-home .home-neighborhoods ul, .mag-home .home-search { grid-template-columns: minmax(0, 1fr); }
  .mag-home .home-section-heading { gap: 4px 14px; }
  .mag-home .home-cards { margin-top: 16px; }
  .mag-home .home-search input { font-size: 1rem; }
  .mag-home .home-hero::before { background: linear-gradient(90deg, #071522ed, #071522a0 62%, #07152248); }
}
