.hero {
  --hero-blue: #0826a5;
  --hero-green: #238f7a;
  --hero-row-gap: 1.15rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
  padding-block: clamp(3rem, 4.2vw, 4.5rem) clamp(2.5rem, 3.6vw, 4rem);
}
.hero .hero-container { position: relative; z-index: 2; width: min(1504px, 90%); }
.hero-visual { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 70%; pointer-events: none; }
.hero-carousel { position: absolute; inset: 0; pointer-events: auto; }
.hero-carousel .hero-photo { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-carousel .hero-photo.is-active { opacity: 1; }
.hero-photo { object-position: var(--hero-focus, center); mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 18%) 10%, #000 34%); }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 0% 78%, #fff 0%, rgb(255 255 255 / 92%) 16%, transparent 46%); }
.hero-sun { position: absolute; z-index: 2; top: -4%; left: -2%; width: 30%; height: auto; }
.hero-leaf { position: absolute; z-index: 1; bottom: -22%; left: 30%; width: 46%; height: auto; opacity: .82; }
.hero-copy { width: 48%; }
.hero .eyebrow { color: #3459ad; gap: .65em; font-size: clamp(.7rem, 1vw, 1.05rem); letter-spacing: .12em; font-weight: 600; margin-bottom: clamp(.4rem, 1dvh, .8rem); }
.hero .eyebrow span { font-size: .65em; }
.hero h1 { color: var(--hero-blue); font-size: clamp(2rem, 4.35vw, 4.55rem); font-family: var(--font-body); font-weight: 750; line-height: .98; letter-spacing: -.038em; text-wrap: initial; }
.hero h1 .text-green { display: block; color: var(--hero-green); }
.hero .small-rule { width: clamp(72px, 7.5vw, 126px); height: 5px; border-radius: 999px; margin-block: clamp(.5rem, 1.1dvh, .85rem); background: #ffdf24; }
.hero-description { color: #5c6780; font-size: clamp(1rem, 1.4vw, 1.48rem); line-height: 1.3; max-width: 40rem; margin-bottom: clamp(.7rem, 1.4dvh, 1.15rem); }
.hero .button-group { gap: .8rem; }
.hero .hero-cta { gap: 1.5rem; min-height: 0; padding: .55rem .75rem .55rem 2.3rem; font-size: clamp(1rem, 1.3vw, 1.4rem); border-radius: 999px; box-shadow: 0 10px 22px rgb(5 38 147 / 16%); }
.hero .hero-cta .icon { width: 1.3rem; height: 1.3rem; padding: .65rem; border-radius: 50%; background: #fff; color: var(--color-cta); box-sizing: content-box; }
.hero .hero-cta:hover { box-shadow: 0 14px 26px rgb(5 38 147 / 22%); }
.hero .hero-cta:hover .icon { transform: translateX(4px); }
.hero .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 1.1rem; width: 100%; margin: var(--hero-row-gap) 0 0; padding: 0; list-style: none; }
.hero-stat { display: flex; align-items: center; gap: .7rem; min-width: 0; min-height: clamp(6rem, 7.5vw, 7.9rem); margin: 0; padding: 1.1rem 1.3rem; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 10px 26px rgb(16 42 92 / 7%); transition: transform .25s ease, box-shadow .25s ease; }
.hero-stat:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgb(16 42 92 / 11%); }
.hero-stat__icon { display: grid; place-items: center; flex: 0 0 auto; width: clamp(3rem, 4.8vw, 5rem); height: clamp(3rem, 4.8vw, 5rem); border-radius: 50%; color: var(--hero-blue); background: #fff3c4; }
.hero-stat__icon .icon { width: 48%; height: 48%; }
.hero-stat:last-child .hero-stat__icon { color: var(--hero-green); background: #e3f6ea; }
.hero-stat__rule { flex: 0 0 auto; align-self: flex-end; width: 1px; height: 1.6rem; margin-bottom: .3rem; background: #d7e3f2; }
.hero-stat:last-child .hero-stat__rule { background: #dceee4; }
.hero-stat__body { min-width: 0; }
.hero-stat__value { margin: 0; color: var(--hero-blue); font-family: var(--font-heading); font-size: clamp(2rem, 2.8vw, 3rem); font-weight: 750; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hero-stat:last-child .hero-stat__value { color: var(--hero-green); }
.hero-stat__value[data-countup].is-counting { display: grid; justify-items: start; }
.hero-stat__value[data-countup] .extension-count,
.hero-stat__value[data-countup] .extension-count-sizer { grid-area: 1 / 1; }
.hero-stat__value[data-countup] .extension-count-sizer { visibility: hidden; }
.hero-stat__label { margin: .2rem 0 0; color: #66748d; font-size: clamp(.8rem, 1.05vw, 1.1rem); line-height: 1.25; }
.reassurance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 53%; gap: 0; margin-top: calc(var(--hero-row-gap) / 2); padding-top: calc(var(--hero-row-gap) / 2 - 1px); border-top: 1px solid #e6eef6; }
.reassurance { min-width: 0; padding-right: clamp(.7rem, 1.4vw, 1.25rem); border-radius: 16px; transition: background-color .25s ease; }
.reassurance + .reassurance { padding-left: clamp(.7rem, 1.4vw, 1.25rem); border-left: 1px solid #e6eef6; }
.reassurance:hover { background: rgb(255 255 255 / 55%); }
.reassurance .icon-circle { width: clamp(48px, 4.2vw, 70px); height: clamp(48px, 4.2vw, 70px); margin-bottom: .4rem; color: #0647bd; background: #e7f1ff; }
.reassurance:nth-child(2) .icon-circle { color: #0b4cc0; background: #fff4c4; }
.reassurance:nth-child(3) .icon-circle { color: #008a68; background: #e3f6ea; }
.reassurance .icon-circle .icon { width: 50%; height: 50%; stroke-width: 1.5; }
.reassurance h2 { color: var(--hero-blue); font-size: clamp(.95rem, 1.2vw, 1.28rem); font-family: var(--font-body); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-wrap: initial; max-width: 14rem; }
.reassurance p { margin-top: .28rem; color: #66748d; font-size: clamp(.8rem, .95vw, 1rem); line-height: 1.35; }
@media (min-width: 768px) {
  .hero { --hero-offset: 91px; --hero-row-gap: max(12px, calc(25 * var(--hero-unit))); --hero-unit: min(calc(100vw / 1672), calc((100dvh - var(--hero-offset)) / 941)); box-sizing: border-box; min-height: 560px; height: calc(100dvh - var(--hero-offset)); padding-block: calc(104 * var(--hero-unit)) calc(28 * var(--hero-unit)); }
  .admin-bar .hero { --hero-offset: 123px; }
}
@media (max-width: 1339px) and (min-width: 768px) {
  .hero { --hero-offset: 83px; }
  .admin-bar .hero { --hero-offset: 115px; }
}
@media (max-width: 1199px) {
  .hero-copy { width: min(58%, 38rem); }
  .hero-description { max-width: 34rem; }
  .reassurance-grid { width: min(82%, 44rem); }
}
@media (max-width: 991px) {
  .hero .hero-container { width: calc(100% - 64px); }
  .hero-copy { width: min(66%, 36rem); }
  .hero-visual { width: 58%; }
  .hero-photo { mask-image: linear-gradient(to right, transparent, rgb(0 0 0 / 20%) 18%, #000 48%); }
  .hero .hero-stats { width: 100%; }
  .reassurance-grid { width: min(100%, 40rem); }
  .hero-leaf { left: 48%; width: 34%; }
}
@media (max-width: 767px) {
  .hero { padding-block: 0 2.5rem; }
  .hero .hero-container { width: calc(100% - 40px); }
  .hero-visual { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1.65; }
  .hero-photo { position: absolute; inset: 0; object-position: center; mask-image: linear-gradient(to bottom, #000 80%, transparent); }
  .hero-visual::after { display: none; }
  .hero-sun { display: none; }
  .hero-leaf { display: none; }
  .hero-copy { width: 100%; padding-top: 1rem; }
  .hero .eyebrow { font-size: .7rem; gap: .65em; margin-bottom: 1rem; }
  .hero h1 { font-size: clamp(1.75rem, 6.4vw, 2.45rem); line-height: 1.08; }
  .hero .desktop-break { display: none; }
  .hero .small-rule { width: 72px; height: 4px; margin-block: 1rem; }
  .hero-description { font-size: 1rem; line-height: 1.5; max-width: none; margin-bottom: 1.25rem; }
  .hero .hero-cta { flex: 0 0 auto; max-width: none; }
  .hero .hero-stats { width: 100%; margin-top: var(--hero-row-gap); gap: .6rem; }
  .hero-stat { gap: .55rem; min-height: 4.6rem; padding: .65rem .6rem; }
  .hero-stat__icon { width: 2.35rem; height: 2.35rem; }
  .hero-stat__value { font-size: 1.35rem; }
  .hero-stat__label { font-size: .72rem; }
  .reassurance-grid { width: 100%; grid-template-columns: 1fr; gap: 0; margin-top: calc(var(--hero-row-gap) / 2); padding-top: calc(var(--hero-row-gap) / 2 - 1px); }
  .reassurance { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: .85rem; padding: .7rem 0; }
  .reassurance + .reassurance { padding-left: 0; border-left: 0; border-top: 1px solid #e6eef6; }
  .reassurance .icon-circle { width: 52px; height: 52px; margin: 0; }
  .reassurance .icon-circle .icon { width: 26px; height: 26px; }
  .reassurance h2 { font-size: 1.05rem; max-width: none; }
  .reassurance p { font-size: .92rem; margin-top: .25rem; }
}
@media (max-width: 420px) {
  .hero .hero-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel .hero-photo { transition: none; }
  .hero-stat, .hero .hero-cta .icon { transition: none; }
  .hero-stat:hover, .hero .hero-cta:hover .icon { transform: none; }
}

/* Curved translucent panel follows the reception composition. */
.hero-panel { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero > .section-shapes, .hero > .section-thread { display: none; }
.hero-visual::after { background: linear-gradient(90deg, #f5fbff 0%, transparent 52%); }
.hero-sun { z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-leaf { bottom: -1px; left: 39%; width: 31%; opacity: .85; }
@media (max-width: 767px) {
  .hero-panel { display: none; }
  .hero .hero-cta { padding-left: 1.4rem; font-size: 1rem; }
  .hero-stat { min-height: 5rem; padding: .8rem; }
  .hero-stat__icon { width: 2.6rem; height: 2.6rem; }
  .hero-sun { display: none; }
}

/* Scale the desktop composition against BOTH viewport dimensions. */
@media (min-width: 768px) {
  .hero .eyebrow { font-size: max(.65rem, calc(17 * var(--hero-unit))); margin-bottom: calc(16 * var(--hero-unit)); }
  .hero h1 { font-size: max(1.85rem, calc(66 * var(--hero-unit))); }
  .hero .small-rule { width: calc(126 * var(--hero-unit)); height: max(3px, calc(5 * var(--hero-unit))); margin-block: calc(17 * var(--hero-unit)); }
  .hero-description { font-size: max(.85rem, calc(22 * var(--hero-unit))); margin-bottom: calc(20 * var(--hero-unit)); max-width: calc(650 * var(--hero-unit)); }
  .hero .hero-cta { gap: calc(25 * var(--hero-unit)); padding: calc(9 * var(--hero-unit)) calc(13 * var(--hero-unit)) calc(9 * var(--hero-unit)) calc(39 * var(--hero-unit)); font-size: max(.85rem, calc(21 * var(--hero-unit))); }
  .hero .hero-cta .icon { width: calc(22 * var(--hero-unit)); height: calc(22 * var(--hero-unit)); padding: calc(11 * var(--hero-unit)); }
  .hero .hero-stats { gap: calc(19 * var(--hero-unit)); margin-top: var(--hero-row-gap); }
  .hero-stat { min-height: calc(126 * var(--hero-unit)); padding: calc(20 * var(--hero-unit)); gap: calc(14 * var(--hero-unit)); border-radius: max(12px, calc(22 * var(--hero-unit))); }
  .hero-stat__icon { width: calc(80 * var(--hero-unit)); height: calc(80 * var(--hero-unit)); }
  .hero-stat__value { font-size: max(1.5rem, calc(47 * var(--hero-unit))); }
  .hero-stat__label { font-size: max(.65rem, calc(16.5 * var(--hero-unit))); }
  .reassurance-grid { margin-top: calc(var(--hero-row-gap) / 2); padding-top: calc(var(--hero-row-gap) / 2 - 1px); }
  .reassurance .icon-circle { width: calc(70 * var(--hero-unit)); height: calc(70 * var(--hero-unit)); margin-bottom: calc(6 * var(--hero-unit)); }
  .reassurance h2 { font-size: max(.75rem, calc(19 * var(--hero-unit))); }
  .reassurance p { font-size: max(.65rem, calc(15 * var(--hero-unit))); }
}

.hero .hero-cta {
  border-color: transparent;
  background: linear-gradient(110deg, #071e9f 0%, #073bc1 52%, #0861e8 100%);
  color: #fff;
}
.hero .hero-cta:hover {
  border-color: transparent;
  background: linear-gradient(110deg, #06198b 0%, #0733ae 52%, #0756d4 100%);
}
@media (max-width: 767px) {
  .reassurance-grid > .reassurance:first-child { padding-top: 0; }
}
