.home-hero { overflow: hidden; background: var(--color-white); }
.home-hero__slider { position: relative; display: grid; min-height: 560px; }
@media (min-width: 1024px) { .home-hero__slider { min-height: 782px; } }
.home-hero__slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0.6s; }
.home-hero__slide.is-active { opacity: 1; visibility: visible; }
.home-hero__media { position: absolute; inset: 0; }
.home-hero__image { width: 100%; height: 100%; object-fit: cover; }
.home-hero__content { position: relative; z-index: 1; padding-block: 3rem 10rem; }
@media (min-width: 1024px) { .home-hero__content { padding-block: 0 96px; } }
.home-hero__title { max-width: 768px; margin: 0; font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5125rem); font-weight: 400; letter-spacing: 0.5px; line-height: 1; }
.home-hero__text { max-width: 768px; margin: 24px 0; font-size: 1.125rem; font-weight: 300; line-height: 28px; }
.home-hero__content .btn { margin: 8px 0; }

/* Full photo: dark overlay, white text */
.home-hero__slide--photo { color: var(--color-white); }
.home-hero__slide--photo .home-hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.home-hero__slide--photo .home-hero__title { color: var(--color-white); }

/* Circle image: image in a large circle on the right */
.home-hero__slide--circle { background: linear-gradient(159deg, #f7f9fa 0%, #fff 60%); }
.home-hero__slide--circle .home-hero__media { left: 38%; inset-block: -10%; right: -15%; border-radius: 50%; overflow: hidden; }
.home-hero__slide--circle .home-hero__title { color: var(--color-heading); }
@media (max-width: 767px) {
	.home-hero__slide--circle { flex-direction: column; align-items: stretch; }
	.home-hero__slide--circle .home-hero__media { position: relative; inset: auto; height: 260px; border-radius: 0 0 0 200px; order: 2; }
	.home-hero__slide--circle .home-hero__content { padding-bottom: 2rem; }
}

.home-hero__dots { position: absolute; z-index: 2; left: 2px; top: 50%; display: flex; flex-direction: column; gap: 0; transform: translateY(-50%); }
.home-hero__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.home-hero__dot::before { content: ""; position: absolute; top: 8px; left: 8px; width: 8px; height: 8px; border-radius: 50%; background: rgba(140, 140, 140, 0.6); }
.home-hero__dot[aria-current="true"]::before { background: var(--color-text); }
.home-hero__slide--photo.is-active ~ .home-hero__dots .home-hero__dot[aria-current="true"]::before { background: var(--color-white); }

.home-hero__links-wrap { position: relative; z-index: 3; margin-top: -9rem; padding-bottom: 2rem; }
@media (min-width: 1024px) { .home-hero__links-wrap { margin-top: -154px; padding-bottom: 37px; } }
.home-hero__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 190px)); justify-content: center; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.home-hero__link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; min-height: 117px; padding: 24px 16px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-white); box-shadow: var(--shadow-card); color: var(--color-text); font-weight: 400; line-height: 1.5; text-align: center; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.home-hero__link:hover { background: var(--color-brand); color: var(--color-white); text-decoration: none; }
.home-hero__link:hover .home-hero__link-icon { filter: brightness(0) invert(1); }
.home-hero__link-icon { width: 40px; height: 40px; object-fit: contain; }
@media (max-width: 599px) {
	.home-hero__links { grid-template-columns: repeat(2, 1fr); }
	.home-hero__links-wrap { margin-top: -3rem; }
	.home-hero__content { padding-bottom: 5rem; }
}
@media (max-width: 767px) {
	.home-hero__dots { top: auto; bottom: 6rem; left: 50%; flex-direction: row; transform: translateX(-50%); }
	.home-hero__links { grid-template-columns: repeat(3, 1fr); }
	.home-hero__link { min-height: 96px; padding: 0.75rem 0.5rem; font-size: 0.875rem; }
	.home-hero__link-icon { width: 32px; height: 32px; }
}
/* Phones: quick links become a full-width list with a chevron (as www.4dinfra.com) */
@media (max-width: 767px) {
	.home-hero__links-wrap { margin-top: 0; padding: 0; max-width: none; }
	.home-hero__links { grid-template-columns: 1fr; gap: 1px; margin-inline: calc(-1 * var(--gutter)); }
	.home-hero__link { flex-direction: row; justify-content: flex-start; gap: 16px; min-height: 0; padding: 16px 48px 16px 16px; border-width: 0 0 1px; border-radius: 0; box-shadow: none; font-size: 1.125rem; text-align: left; position: relative; }
	.home-hero__link::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-50%) rotate(-45deg); }
	.home-hero__link-icon { width: 40px; height: 32px; }
	.home-hero__content { padding-bottom: 3rem; }
	.home-hero__dots { bottom: 1rem; }
}
@media (max-width: 767px) { .home-hero__content { padding-top: 2rem; } .home-hero__content .btn { width: 100%; } }

/* Pause / play control (WCAG 2.2.2) */
.home-hero__toggle { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.home-hero__toggle::before, .home-hero__toggle::after { content: ""; position: absolute; top: 7px; width: 3px; height: 10px; background: rgba(140, 140, 140, 0.8); }
.home-hero__toggle::before { left: 8px; }
.home-hero__toggle::after { left: 13px; }
.home-hero__toggle[aria-pressed="true"]::before { left: 9px; width: 0; height: 0; background: none; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent rgba(140, 140, 140, 0.8); }
.home-hero__toggle[aria-pressed="true"]::after { display: none; }
.home-hero__toggle:focus-visible, .home-hero__dot:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ------------------------------------------------------------------
 * Full-screen panels (as www.4dinfra.com).
 * Desktop: hero fills the viewport below the header; slides sit in a
 * vertical track and slide up/down (JS moves the track).
 * Phones: slides stack in the page, quick links after the first one.
 * ------------------------------------------------------------------ */
@media (min-width: 768px) {
	.home-hero { position: relative; height: calc(100vh - var(--hero-top, var(--header-height))); height: calc(100svh - var(--hero-top, var(--header-height))); min-height: 640px; }
	.home-hero__slider { display: block; height: 100%; min-height: 0; overflow: hidden; }
	.home-hero__track { height: 100%; transition: transform 0.6s ease; will-change: transform; }
	.home-hero__slide { height: 100%; overflow: hidden; opacity: 1; visibility: visible; transition: none; }
	.home-hero__content { padding-block: 0 calc(117px + clamp(32px, 10vh, 96px)); }
	.home-hero__links-wrap { position: absolute; left: 0; right: 0; bottom: clamp(32px, 10vh, 96px); margin: 0 auto; padding-bottom: 0; }
	.home-hero--single .home-hero__slider { min-height: 0; }
	.home-hero__dots { left: 2px; }
	.home-hero__dot::before { background: rgba(0, 0, 0, 0.2); }
	.home-hero__dot[aria-current="true"]::before { background: var(--color-text); }
	.home-hero.is-on-photo .home-hero__dot::before { background: rgba(255, 255, 255, 0.5); }
	.home-hero.is-on-photo .home-hero__dot[aria-current="true"]::before { background: var(--color-white); }
	/* Circle slide: image fills the right 70% under a quarter-circle curve (as live). */
	.home-hero__slide--circle .home-hero__media { inset: auto; top: 48px; right: 0; left: auto; width: 70%; aspect-ratio: 1; border-radius: 100% 0 0 0; }
	.home-hero__slide--circle .home-hero__content { position: relative; z-index: 2; }
	.home-hero__slide--circle .home-hero__text { max-width: 30vw; min-width: 420px; }
}
@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
	.home-hero__track { transition: none; }
}
@media (max-width: 767px) {
	.home-hero--panels { display: flex; flex-direction: column; }
	.home-hero--panels .home-hero__slider,
	.home-hero--panels .home-hero__track { display: contents; }
	.home-hero--panels .home-hero__slide { order: 3; opacity: 1; visibility: visible; transition: none; }
	.home-hero--panels .home-hero__slide:first-child { order: 1; }
	.home-hero--panels .home-hero__links-wrap { order: 2; }
	.home-hero--panels .home-hero__dots { display: none; }
	.home-hero--panels .home-hero__slide--photo { min-height: 560px; }
}
/* Block editor: no full-screen height. */
.editor-styles-wrapper .home-hero { height: auto; min-height: 0; }
.editor-styles-wrapper .home-hero__slide { min-height: 600px; }
.editor-styles-wrapper .home-hero__links-wrap { position: relative; bottom: auto; margin-top: -154px; padding-bottom: 37px; }
/* Tablets: image strip across the top of the circle slide (as live between 768 and 1023px). */
@media (min-width: 768px) and (max-width: 1023px) {
	.home-hero__slide--circle { flex-direction: column; align-items: stretch; }
	.home-hero__slide--circle .home-hero__media { position: relative; inset: auto; flex: 0 0 34%; width: auto; aspect-ratio: auto; border-radius: 0 0 0 200px; }
	.home-hero__slide--circle .home-hero__content { padding-top: 32px; }
	.home-hero__slide--circle .home-hero__text { max-width: 768px; min-width: 0; }
}
/* Quick links: one row of equal tiles from 768px (as live), however many links. */
@media (min-width: 768px) {
	.home-hero__links { display: flex; justify-content: center; gap: 2px; }
	.home-hero__links > li { flex: 0 1 190px; min-width: 0; }
}

/* Quick links travel with each slide on desktop (a copy sits in every slide); one copy on phones. */
.home-hero__links-wrap--slide { display: none; }
@media (min-width: 768px) {
	.home-hero--panels > .home-hero__links-wrap { display: none; }
	.home-hero--panels .home-hero__links-wrap--slide { display: block; position: absolute; left: 0; right: 0; bottom: clamp(32px, 10vh, 96px); z-index: 3; margin: 0 auto; padding-bottom: 0; }
}
/* Slide titles: same fluid size as the live site's "heading-xl" (64px max). */
.home-hero__title { font-size: clamp(2.25rem, 2.046rem + 1.625vw, 4rem); }
/* Slide dots sit just left of the content column on wide screens, 10px from the edge otherwise. */
@media (min-width: 768px) { .home-hero__dots { left: max(2px, calc((100vw - 1464px) / 2 - 42px)); } }
