.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

/* ── Editorial split hero (home) — photo left, copy on light sky ── */
.hero.hero--editorial {
  position: relative;
  min-height: min(88vh, 780px);
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--color-navy);
  background: #f4f6f8;
  overflow: hidden;
  box-sizing: border-box;
}

.hero--editorial .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero--editorial .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% center;
  animation: none;
  transform: none;
  filter: none;
}

.hero--editorial .hero__media::after {
  display: none;
}

.hero--editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 38%,
    rgba(244, 246, 248, 0.35) 48%,
    rgba(244, 246, 248, 0.88) 58%,
    #f4f6f8 66%
  );
}

.hero__panel {
  position: relative;
  z-index: 2;
  width: min(42%, 500px);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem) 0;
  margin-right: clamp(1.25rem, 7vw, 9%);
}

.hero.hero--editorial h1 {
  margin: 0 0 var(--space-5);
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #0a1628;
  max-width: 12ch;
  text-align: left;
  text-wrap: balance;
}

.hero.hero--editorial .hero__lede {
  margin: 0 0 var(--space-6);
  max-width: 30ch;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.65;
  color: #334155;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.hero__phone {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
}

.hero__phone:hover {
  color: var(--color-sky);
}

/* Legacy full-bleed hero (if reused) */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-zoom 18s ease-out both;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.35) 0%, rgba(10, 22, 40, 0.55) 45%, rgba(10, 22, 40, 0.78) 100%),
    linear-gradient(90deg, rgba(10, 22, 40, 0.25), rgba(10, 22, 40, 0.25));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin-inline: auto;
  padding-block: clamp(5rem, 12vw, 7.5rem) clamp(3rem, 7vw, 5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4);
}

.hero:not(.hero--editorial) h1 {
  color: #fff;
  max-width: 18ch;
  margin-bottom: var(--space-4);
  text-wrap: balance;
  text-align: center;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
}

.hero .cta-group {
  justify-content: center;
}

.hero--lp {
  min-height: min(78vh, 620px);
}

.hero--lp h1 {
  max-width: 16ch;
}

@media (max-width: 960px) {
  .hero.hero--editorial {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: #fff;
  }

  .hero--editorial::before {
    display: none;
  }

  .hero--editorial .hero__media {
    position: relative;
    height: clamp(280px, 56vw, 420px);
  }

  .hero--editorial .hero__media img {
    object-position: center 30%;
  }

  .hero__panel {
    width: 100%;
    margin: 0;
    padding: clamp(1.75rem, 5vw, 2.5rem) var(--space-5) clamp(2rem, 6vw, 2.75rem);
  }

  .hero.hero--editorial h1 {
    max-width: none;
    color: #0a1628;
  }
}

@media (max-width: 520px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.split--media {
  align-items: center;
}

.split__visual {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  max-height: 560px;
}

.split__visual--wide {
  aspect-ratio: 5 / 4;
  max-height: none;
}

.split__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split__visual {
    aspect-ratio: 16 / 10;
    max-height: 360px;
  }
}

.lead-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.lead-panel h2 {
  margin-bottom: var(--space-2);
}

.page-hero {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 6.5rem) clamp(3rem, 6vw, 4rem);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10, 22, 40, 0.82), rgba(10, 22, 40, 0.45)),
    linear-gradient(180deg, rgba(10, 22, 40, 0.15), rgba(10, 22, 40, 0.55));
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1,
.page-hero .section__eyebrow,
.page-hero .lede {
  color: #fff;
}

.page-hero .section__eyebrow::before {
  background: #93c5fd;
}

.page-hero .lede {
  color: rgba(255, 255, 255, 0.86);
}

.page-hero h1 {
  max-width: 14ch;
}

.blog-list {
  display: grid;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-5);
  text-decoration: none;
  color: inherit;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.blog-card__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card time {
  font-size: var(--fs-small);
  color: var(--color-muted);
}

.blog-card h2 {
  margin: var(--space-2) 0;
  font-size: var(--fs-h3);
}

@media (max-width: 700px) {
  .blog-card {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: var(--space-6);
}

.prose-hero {
  margin: 0 0 var(--space-6);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.prose-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thanks {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(37, 99, 235, 0.12), transparent 70%);
}

.thanks__panel {
  max-width: 34rem;
}

.thanks__panel h1 {
  margin-bottom: var(--space-3);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

.hero__content > * {
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__content > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero__content > *:nth-child(3) {
  animation-delay: 0.16s;
}

.hero__content > *:nth-child(4) {
  animation-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .hero__content > *,
  .hero__media img {
    animation: none;
  }
}

.feature-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}

@media (max-width: 800px) {
  .feature-band {
    grid-template-columns: 1fr;
  }
}

.map-placeholder {
  margin-top: 1rem;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--color-surface);
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.map-placeholder__label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.78);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}