.home {
    color: var(--em-marine);
}

.home-hero {
    min-height: 42.5rem;
    color: var(--em-white);
    background: var(--em-marine);
}

.home-hero__viewport {
    overflow: hidden;
    min-height: inherit;
}

.home-hero__container {
    display: flex;
    min-height: inherit;
}

.home-hero__slide {
	position: relative;
    display: grid;
    min-width: 0;
    min-height: inherit;
    flex: 0 0 100%;
	overflow: hidden;
	background: var(--em-marine);
}

.home-hero__image {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.home-hero__slide::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(8, 37, 64, .96), rgba(8, 37, 64, .84) 45%, rgba(8, 37, 64, .38) 80%, rgba(8, 37, 64, .08));
	content: '';
}

.home-hero__copy {
	position: relative;
	z-index: 2;
    display: flex;
    width: min(100%, 82.625rem);
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 5.5rem 5rem 9.5rem max(5rem, calc((100vw - 87.5rem)/2));
}

.home-hero :is(h1, h2) {
    max-width: 50rem;
    margin-bottom: 1.5rem;
    font-size: clamp(3rem, 5.4vw, 5rem);
    letter-spacing: -.055em;
    line-height: .98;
}

.home-hero :is(h1, h2) strong {
    color: var(--em-electric);
}

.home-hero :is(h1, h2) em {
    font-style: italic;
}

.home-hero__text {
    max-width: 37.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, .8);
    font-size: 1.125rem;
    line-height: 1.55;
}

.home-hero__text p { margin: 0; }

.home-hero__controls {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 3.5rem;
    left: 0;
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: center;
}

.home-hero__progress {
    position: absolute;
    z-index: 3;
    right: 50%;
    bottom: 7.25rem;
    left: 50%;
    width: min(20rem, calc(100% - 2.5rem));
    height: .25rem;
    overflow: hidden;
    border-radius: 99rem;
    background: rgba(255, 255, 255, .28);
    transform: translateX(-50%);
}

.home-hero__progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--em-electric);
    transform-origin: left center;
}

.home-hero--carousel {
    position: relative;
    z-index: 2;
}

.home-hero__control,
.home-hero__dot {
	display: inline-grid;
	min-width: 2.75rem;
	min-height: 2.75rem;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 50%;
	color: var(--em-white);
	background: rgba(8, 37, 64, .66);
	cursor: pointer;
	transition: background-color var(--em-transition), border-color var(--em-transition), color var(--em-transition), box-shadow var(--em-transition), transform var(--em-transition);
}

.home-hero__control:hover,
.home-hero__dot:hover {
	border-color: var(--em-electric);
	color: var(--em-marine);
	background: var(--em-electric);
	box-shadow: 0 .5rem 1rem rgba(8, 37, 64, .2);
	transform: translateY(-.125rem);
}

.home-hero__toggle {
    width: auto;
    padding-inline: .875rem;
    border-radius: 99rem;
    font-size: .8125rem;
    font-weight: 700;
}

.home-hero__dots { display: flex; gap: .375rem; }
.home-hero__dot { min-width: 2.75rem; padding: 0; }
.home-hero__dot::before { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; content: ''; opacity: .7; transition: width var(--em-transition), height var(--em-transition); }
.home-hero__dot[aria-current="true"] { border-color: var(--em-electric); color: var(--em-electric); }
.home-hero__dot[aria-current="true"]::before { width: .75rem; height: .75rem; }
.home-hero :where(a, button):focus-visible { outline: 3px solid var(--em-electric); outline-offset: 3px; }

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.home-impact {
    position: relative;
    z-index: 2;
    margin-top: -2.5rem;
}

.home-impact__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #e9eef2;
    border-radius: .5rem;
    background: #e9eef2;
    box-shadow: 0 1rem 1.75rem rgba(0, 0, 0, .19);
}

.home-impact__stat {
    padding: 1.5rem;
    background: var(--em-white);
}

.home-impact__stat strong {
    display: block;
    margin-bottom: .375rem;
    font-size: 3rem;
    letter-spacing: -.0625rem;
    line-height: 1;
}

.home-impact__stat span {
    color: var(--em-body-muted);
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.25;
    text-transform: uppercase;
}

.home-paths,
.home-fronts {
    padding-block: 7rem;
}

.home-section-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.home-section-head h2,
.home-purpose h2,
.home-onee h2 {
    max-width: 46rem;
    margin-bottom: 0;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    letter-spacing: -.055em;
    line-height: 1.03;
}

.home-section-head>p {
    max-width: 46rem;
    margin: 0;
    color: var(--em-body-muted);
}

.home-paths__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .875rem;
}

.home-path {
    display: flex;
    min-height: 13.75rem;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid #d5dde2;
    border-top: 5px solid var(--path-accent);
    border-radius: 1rem;
    transition: transform var(--em-transition), box-shadow var(--em-transition);
}

.home-path--green {
    --path-accent: var(--em-electric)
}

.home-path--marine {
    --path-accent: var(--em-marine)
}

.home-path--ice {
    --path-accent: var(--em-ice)
}

.home-path:hover,
.home-front:hover {
    transform: translateY(-.3125rem);
    box-shadow: 0 1rem 1.75rem rgba(23, 37, 54, .1)
}

.home-path__icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.875rem;
}

.home-path__icon svg {
	width: 60%;
	height: 60%;
}

.home-path h3 {
    margin-bottom: .75rem;
    font-size: 1.25rem;
}

.home-path p {
    margin-bottom: 1.25rem;
    color: var(--em-body-muted);
    font-size: .9375rem;
    line-height: 1.5;
}

.home-path a {
    padding-top: 1.375rem
}

.home-path a,
.home-front a {
    font-weight: 700;
    text-decoration: none;
}

:is(.home-path, .home-front):not(.home-front--featured) a{
    margin-top: auto;
}

.home-path a:hover,
.home-front a:hover {
    text-decoration: underline;
}

.home-purpose {
    display: grid;
    min-height: 32.5rem;
    grid-template-columns: 1fr 1fr;
    background: var(--em-electric);
}

.home-purpose__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 9vw 5rem max(5rem, calc((100vw - 87.5rem)/2));
}

.home-purpose__copy>p:not(.em-kicker) {
    max-width: 31.25rem;
    margin-top: 1.5rem;
    color: rgba(33, 46, 62, .78);
    font-size: 1.125rem;
}

.home-purpose__copy .ds-button {
    width: fit-content;
    margin-top: .5rem;
}

.home-purpose__visual {
    min-height: 32.5rem;
    background: url('../photos/photo-1446776811953-b23d57bd21aa.webp') center/cover;
}

.home-fronts__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: .875rem;
}

.home-front {
    display: flex;
    min-height: 13.75rem;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid #d5dde2;
    border-radius: 1rem;
    transition: transform var(--em-transition), box-shadow var(--em-transition);
}

.home-front__logo {
    width: auto;
    height: 2.3rem;
    margin-bottom: 1.25rem;
    object-fit: contain;
    object-position: left center;
}

.home-front>p:not(.em-kicker) {
    margin-bottom: 1rem;
    color: var(--em-body-muted);
    font-size: .9375rem;
    line-height: 1.5;
}

.home-front--featured {
    min-height: 25rem;
    grid-row: span 2;
    border: 0;
    background: linear-gradient(180deg, rgba(20, 63, 71, .12), rgba(20, 63, 71, .9)), url('../photos/please-tell-us-correct-answer.webp') center/cover;
    color: var(--em-white);
    justify-content: end;
}

.home-front--featured .em-kicker,
.home-front--featured>p:not(.em-kicker) {
    color: rgba(255, 255, 255, .84);
}

.home-front--featured a {
    color: var(--em-white);
}

.home-territory {
    padding-block: 7rem;
    color: var(--em-white);
    background: var(--em-marine);
}

.home-territory__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 4rem;
    align-items: center;
}

.home-territory .em-kicker {
    color: rgba(255, 255, 255, .84);
}

.home-territory .home-section-head {
    display: block;
    margin-bottom: 2rem;
}

.home-territory .home-section-head>p {
    margin-top: 1rem;
    color: rgba(255, 255, 255, .72);
}

.home-territory__copy {
    display: grid;
    gap: 1.5rem;
}

.home-territory__item {
    padding-left: 1.125rem;
    border-left: 2px solid var(--em-electric);
}

.home-territory__item strong {
    display: block;
    margin-bottom: .375rem;
    font-size: 1.125rem;
}

.home-territory__item span {
    color: rgba(255, 255, 255, .72);
    font-size: .875rem;
}

.home-territory__map-link { justify-self: start; }

.home-territory__map {
    min-height: 17rem;
}

.home-territory__map .mapa-es--mini {
    min-height: 17rem;
}

.home-territory__map .mapa-legenda {
    color: var(--em-white);
}

.home-onee {
    padding-block: 7rem;
}

.home-onee h2 {
    margin-bottom: 2.5rem;
}

.home-onee__link {
    display: block;
    overflow: hidden;
    border-radius: var(--em-radius-lg);
}

.home-onee__banner {
    width: 100%;
    border-radius: var(--em-radius-lg);
}

@media (max-width:1119px) {

    .home-hero__copy,
    .home-purpose__copy {
        padding-inline: 3rem
    }

    .home-fronts__grid {
        grid-template-columns: 1fr 1fr
    }

    .home-territory__grid {
        gap: 2rem
    }
}

@media (max-width:767px) {
    .home-hero {
        min-height: 0
    }

    .home-hero__slide {
	    background: var(--em-marine)
	}

	.home-hero__image {
	    object-position: 70% center;
	}

	.home-hero__slide::before {
	    background: linear-gradient(90deg, rgba(8, 37, 64, .85), rgba(8, 37, 64, .85));
	}

    .home-hero__copy {
        padding: 4.75rem 1.25rem 8.25rem
    }

    .home-hero :is(h1, h2) {
        font-size: clamp(2.75rem, 13vw, 3.75rem)
    }

    .home-hero__text {
        font-size: 1rem
    }

    .home-hero__controls {
        right: 0;
        bottom: 1rem;
        left: 0;
        gap: .375rem;
    }

    .home-hero__progress {
        bottom: 4.75rem;
    }

    .home-hero__toggle { padding-inline: .625rem; }

    .home-impact {
        margin-top: 0
    }

    .home-impact .site-container {
        width: 100%
    }

    .home-impact__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 0
    }

    .home-impact__stat {
        padding: 1.25rem
    }

    .home-impact__stat strong {
        font-size: 2.25rem
    }

    .home-paths,
    .home-fronts,
    .home-territory,
    .home-onee {
        padding-block: 4.25rem
    }

    .home-section-head,
    .home-purpose,
    .home-territory__grid {
        grid-template-columns: 1fr;
        gap: 1.75rem
    }

    .home-section-head {
        align-items: start
    }

    .home-paths__grid,
    .home-fronts__grid {
        grid-template-columns: 1fr
    }

    .home-purpose__copy {
        padding: 4.25rem 1.25rem
    }

    .home-purpose__visual {
        min-height: 21.25rem;
        order: 2
    }

    .home-front--featured {
        min-height: 25rem;
        grid-row: auto
    }

    .home-territory__map,
    .home-territory__map .mapa-es--mini {
        min-height: 17rem
    }

    .home-onee h2 {
        margin-bottom: 2rem
    }
}

@media (max-width:479px) {
    .home-path {
        min-height: 11.875rem
    }
}

@media (prefers-reduced-motion:reduce) {

    .home *,
    .home *::before,
    .home *::after {
        scroll-behavior: auto;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important
    }
}
