/*
 * Elite Solar design system
 * Light page with a single "night" colour block that ties back to the video hero.
 * Shape rule: images and panels use --es-radius (16px), buttons and pills are fully rounded.
 * Every class is prefixed with es- so it can live alongside the legacy Bulkit CSS on the landing page.
 */

@font-face {
    font-family: 'LT Energy';
    src: url('/fonts/LTEnergyVFVF.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --es-bg: #f6f6f8;
    --es-surface: #ffffff;
    --es-surface-2: #edecf2;
    --es-ink: #14121c;
    --es-ink-2: #45424f;
    --es-ink-3: #67647a;
    --es-line: #dedce6;
    --es-accent: #b8329f;
    --es-accent-hover: #a02a8a;
    --es-on-accent: #ffffff;
    --es-accent-tint: #f9e7f6;
    --es-accent-soft: #ee8fe8;

    --es-night: #0d0b1e;
    --es-night-2: #17142f;
    --es-night-line: #2a2647;
    --es-on-night: #f3f1f9;
    --es-on-night-2: #b9b4cf;

    --es-radius: 16px;
    --es-radius-sm: 10px;
    --es-shadow: 0 1px 2px rgba(20, 18, 28, .05), 0 18px 40px -18px rgba(40, 30, 70, .22);

    --es-font-display: 'LT Energy', 'Geist', system-ui, sans-serif;
    --es-font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --es-ease: cubic-bezier(.16, 1, .3, 1);
    --es-max: 1240px;
    --es-gutter: clamp(16px, 4vw, 40px);
    --es-section: clamp(72px, 9vw, 128px);
}

@media (prefers-color-scheme: dark) {
    :root {
        --es-bg: #0f0e16;
        --es-surface: #17151f;
        --es-surface-2: #1f1c2a;
        --es-ink: #f2f0f7;
        --es-ink-2: #c6c2d2;
        --es-ink-3: #9d99ae;
        --es-line: #2c2938;
        --es-accent: #ec8de4;
        --es-accent-hover: #f3a9ed;
        --es-on-accent: #1a0f19;
        --es-accent-tint: rgba(238, 143, 232, .1);
        --es-night: #08070f;
        --es-night-2: #121022;
        --es-night-line: #24203b;
        --es-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .6);
    }
}

/* ---------- Base (interior pages load this without Bulkit) ---------- */

.es-page {
    margin: 0;
    background: var(--es-bg);
    color: var(--es-ink);
    font-family: var(--es-font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.es-page *,
.es-page *::before,
.es-page *::after {
    box-sizing: border-box;
}

.es-page img {
    max-width: 100%;
    display: block;
}

.es-page a {
    color: inherit;
}

.es-scope {
    font-family: var(--es-font-body);
    color: var(--es-ink);
    background: var(--es-bg);
    font-size: 17px;
    line-height: 1.6;
}

.es-scope h1, .es-scope h2, .es-scope h3, .es-scope h4, .es-scope p, .es-scope ul, .es-scope figure {
    margin: 0;
    padding: 0;
}

.es-scope ul {
    list-style: none;
}

/* Bulkit sets Roboto on text elements; keep the new sections on Geist */
.es-scope :is(p, li, span, a, label, input, textarea, button, figcaption, summary),
.es-footer :is(p, li, span, a) {
    font-family: var(--es-font-body);
}

:focus-visible {
    outline: 2px solid var(--es-accent);
    outline-offset: 3px;
}

.es-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--es-ink);
    color: var(--es-bg) !important;
    text-decoration: none;
}

.es-skip:focus {
    top: 16px;
}

/* ---------- Layout ---------- */

.es-container {
    width: 100%;
    max-width: var(--es-max);
    margin: 0 auto;
    padding: 0 var(--es-gutter);
}

.es-section {
    padding: var(--es-section) 0;
}

.es-section--tight {
    padding-top: clamp(40px, 5vw, 64px);
    padding-bottom: clamp(40px, 5vw, 64px);
}

.es-section--tint {
    background: var(--es-surface-2);
}

.es-night {
    background: var(--es-night);
    color: var(--es-on-night);
}

/* ---------- Type ---------- */

.es-display {
    font-family: var(--es-font-display);
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.05;
    color: inherit;
}

.es-h1 {
    font-size: clamp(40px, 6vw, 72px);
}

.es-h2 {
    font-size: clamp(32px, 4.2vw, 52px);
    max-width: 18ch;
}

.es-h3 {
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.15;
}

.es-h4 {
    font-family: var(--es-font-body);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.es-lead {
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.6;
    color: var(--es-ink-2);
    max-width: 58ch;
}

.es-body {
    color: var(--es-ink-2);
    max-width: 62ch;
}

.es-body + .es-body {
    margin-top: 1em;
}

.es-small {
    font-size: 15px;
    color: var(--es-ink-3);
}

.es-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--es-accent);
    margin-bottom: 18px;
}

.es-night .es-eyebrow {
    color: var(--es-accent-soft);
}

.es-night .es-lead,
.es-night .es-body {
    color: var(--es-on-night-2);
}

.es-accent-text {
    color: var(--es-accent);
}

.es-night .es-accent-text {
    color: var(--es-accent-soft);
}

.es-stack > * + * {
    margin-top: 20px;
}

/* ---------- Buttons & links ---------- */

.es-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 600 16px/1 var(--es-font-body);
    letter-spacing: -0.005em;
    white-space: nowrap;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .25s var(--es-ease), background-color .25s var(--es-ease), color .25s var(--es-ease), border-color .25s var(--es-ease);
}

.es-btn:active {
    transform: translateY(1px) scale(.98);
}

.es-btn i {
    font-size: 18px;
    transition: transform .3s var(--es-ease);
}

.es-btn:hover i {
    transform: translateX(3px);
}

.es-btn--accent {
    background: var(--es-accent);
    color: var(--es-on-accent) !important;
}

.es-btn--accent:hover {
    background: var(--es-accent-hover);
}

.es-btn--ink {
    background: var(--es-ink);
    color: var(--es-bg) !important;
}

.es-btn--ink:hover {
    background: var(--es-ink-2);
}

.es-btn--ghost {
    border-color: var(--es-line);
    color: var(--es-ink) !important;
    background: transparent;
}

.es-btn--ghost:hover {
    border-color: var(--es-ink);
}

.es-night .es-btn--ghost,
.es-on-photo .es-btn--ghost {
    border-color: rgba(255, 255, 255, .35);
    color: #fff !important;
}

.es-night .es-btn--ghost:hover,
.es-on-photo .es-btn--ghost:hover {
    border-color: #fff;
}

.es-night .es-btn--accent {
    background: var(--es-accent-soft);
    color: #1a0f19 !important;
}

.es-night .es-btn--accent:hover {
    background: #f6b3f1;
}

.es-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.es-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--es-ink) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--es-line);
    padding-bottom: 4px;
    transition: border-color .25s var(--es-ease), gap .25s var(--es-ease);
}

.es-link:hover {
    border-color: var(--es-accent);
    gap: 12px;
}

.es-link i {
    color: var(--es-accent);
}

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
    .es-js [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity .8s var(--es-ease), transform .8s var(--es-ease);
        transition-delay: calc(var(--i, 0) * 80ms);
    }

    .es-js [data-reveal].is-visible {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Navigation (interior pages) ---------- */

.es-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: 72px;
    display: flex;
    align-items: center;
    transition: background-color .35s var(--es-ease), box-shadow .35s var(--es-ease);
}

.es-nav,
.es-nav :is(a, button) {
    font-family: var(--es-font-body);
    line-height: 1.6;
}

.es-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.es-nav__logo img {
    height: 34px;
    width: auto;
}

.es-nav__logo .es-logo-ink {
    display: none;
}

.es-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.es-nav__links a {
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15.6px;
    color: #fff;
    text-decoration: none;
    transition: background-color .25s var(--es-ease), color .25s var(--es-ease);
}

.es-nav__links a:hover {
    background: rgba(255, 255, 255, .12);
}

.es-nav__links a[aria-current="page"] {
    background: rgba(255, 255, 255, .16);
}

.es-nav__links .es-btn {
    margin-left: 12px;
    min-height: 42px;
    padding: 0 20px;
}

.es-nav__links .es-btn:hover {
    background: var(--es-accent-hover);
}

.es-nav__toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: transparent;
    color: #fff;
    font-size: 22px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.es-nav.is-solid {
    background: var(--es-surface);
    box-shadow: 0 1px 0 var(--es-line);
}

.es-nav.is-solid .es-nav__links a:not(.es-btn) {
    color: var(--es-ink);
}

.es-nav.is-solid .es-nav__links a:not(.es-btn):hover,
.es-nav.is-solid .es-nav__links a[aria-current="page"]:not(.es-btn) {
    background: var(--es-surface-2);
}

.es-nav.is-solid .es-nav__toggle {
    color: var(--es-ink);
    border-color: var(--es-line);
}

@media (prefers-color-scheme: light) {
    .es-nav.is-solid .es-logo-light {
        display: none;
    }

    .es-nav.is-solid .es-logo-ink {
        display: block;
    }
}

@media (max-width: 960px) {
    .es-nav__toggle {
        display: inline-flex;
    }

    .es-nav__links {
        position: fixed;
        inset: 72px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 16px 24px;
        background: var(--es-surface);
        box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .35);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s var(--es-ease), transform .3s var(--es-ease), visibility .3s;
    }

    .es-nav__links a:not(.es-btn) {
        color: var(--es-ink) !important;
        padding: 14px 12px;
        font-size: 17px;
    }

    .es-nav__links .es-btn {
        margin: 12px 0 0;
        min-height: 50px;
    }

    .es-nav.is-open {
        background: var(--es-surface);
    }

    .es-nav.is-open .es-nav__links {
        opacity: 1;
        transform: none;
        visibility: visible;
    }

    .es-nav.is-open .es-nav__toggle {
        color: var(--es-ink);
        border-color: var(--es-line);
    }
}

@media (max-width: 960px) and (prefers-color-scheme: light) {
    .es-nav.is-open .es-logo-light {
        display: none;
    }

    .es-nav.is-open .es-logo-ink {
        display: block;
    }
}

/* ---------- Page header (interior pages) ---------- */

.es-header {
    position: relative;
    min-height: min(68dvh, 640px);
    display: flex;
    align-items: flex-end;
    padding: 140px 0 clamp(48px, 6vw, 80px);
    color: #fff;
    overflow: hidden;
    background: var(--es-night);
}

.es-header__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.es-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 7, 18, .55) 0%, rgba(8, 7, 18, .15) 35%, rgba(8, 7, 18, .78) 100%);
}

.es-header .es-container {
    position: relative;
    z-index: 1;
}

.es-header .es-lead {
    color: rgba(255, 255, 255, .86);
    margin-top: 18px;
    max-width: 46ch;
}

@media (prefers-reduced-motion: no-preference) {
    .es-header__img {
        animation: es-zoom 1.8s var(--es-ease) both;
    }

    .es-header h1,
    .es-header .es-lead,
    .es-header .es-actions {
        animation: es-rise 1s var(--es-ease) both;
    }

    .es-header .es-lead {
        animation-delay: .12s;
    }

    .es-header .es-actions {
        animation-delay: .22s;
    }
}

@keyframes es-zoom {
    from {
        transform: scale(1.08);
    }
}

@keyframes es-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Solar page split header */
.es-header--split {
    align-items: center;
    min-height: min(100dvh, 860px);
    background:
        radial-gradient(60% 70% at 85% 30%, rgba(238, 143, 232, .16), transparent 70%),
        var(--es-night);
}

.es-header--split::after {
    display: none;
}

.es-header__grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.es-header__figure {
    border-radius: var(--es-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}

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

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

/* ---------- Accreditation strip ---------- */

.es-logos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
}

.es-logos__item {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 22px;
    background: #fff;
    border-radius: var(--es-radius-sm);
    border: 1px solid var(--es-line);
}

.es-logos__item img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.es-logos-label {
    text-align: center;
    margin-bottom: 20px;
}

@media (max-width: 760px) {
    .es-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .es-logos__item:last-child {
        grid-column: 1 / -1;
    }
}

/* ---------- Split (text + image) ---------- */

.es-split {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
}

.es-split--flip {
    grid-template-columns: 7fr 5fr;
}

.es-split--flip .es-split__media {
    order: -1;
}

.es-split__media {
    border-radius: var(--es-radius);
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: var(--es-surface-2);
}

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

.es-split__media--square {
    aspect-ratio: 1 / 1;
}

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

    .es-split--flip .es-split__media {
        order: 0;
    }
}

/* ---------- Bento (services overview) ---------- */

.es-bento {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(300px, auto));
    gap: 16px;
    margin-top: 48px;
}

.es-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 300px;
    padding: 28px;
    border-radius: var(--es-radius);
    overflow: hidden;
    color: #fff;
    text-decoration: none !important;
    isolation: isolate;
}

.es-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 1.2s var(--es-ease);
}

.es-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 8, 22, 0) 25%, rgba(10, 8, 22, .82) 100%);
}

.es-tile:hover img {
    transform: scale(1.05);
}

.es-tile h3 {
    color: #fff;
}

.es-tile p {
    margin-top: 10px;
    color: rgba(255, 255, 255, .84);
    max-width: 44ch;
    font-size: 16px;
}

.es-tile__arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 18px;
    transition: transform .4s var(--es-ease), background-color .3s var(--es-ease);
}

.es-tile:hover .es-tile__arrow {
    transform: rotate(-45deg);
    background: var(--es-accent-soft);
    color: #1a0f19;
}

.es-tile--tall {
    grid-row: 1 / span 2;
}

.es-tile--wide {
    grid-column: 2 / span 2;
}

@media (max-width: 900px) {
    .es-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
    }

    .es-tile--tall {
        grid-row: auto;
        grid-column: 1 / -1;
        min-height: 420px;
    }

    .es-tile--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .es-bento {
        grid-template-columns: 1fr;
    }

    .es-tile {
        min-height: 340px;
    }
}

/* ---------- Reasons (interactive list + image) ---------- */

.es-reasons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.es-reasons__frame {
    position: sticky;
    top: 104px;
    aspect-ratio: 1 / 1;
    border-radius: var(--es-radius);
    overflow: hidden;
    background: var(--es-surface);
    border: 1px solid var(--es-line);
}

.es-reasons__frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity .6s var(--es-ease), transform 1s var(--es-ease);
}

.es-reasons__frame img.is-active {
    opacity: 1;
    transform: none;
}

.es-reasons__list {
    margin-top: 40px !important;
    border-top: 1px solid var(--es-line);
}

.es-reason {
    border-bottom: 1px solid var(--es-line);
}

.es-reason__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    background: none;
    border: 0;
    text-align: left;
    color: var(--es-ink-3);
    cursor: pointer;
    font: 600 clamp(20px, 2vw, 24px)/1.2 var(--es-font-body);
    letter-spacing: -0.015em;
    transition: color .3s var(--es-ease);
}

.es-reason__btn i {
    font-size: 20px;
    transition: transform .4s var(--es-ease), color .3s var(--es-ease);
}

.es-reason__btn:hover,
.es-reason.is-active .es-reason__btn {
    color: var(--es-ink);
}

.es-reason.is-active .es-reason__btn i {
    transform: rotate(45deg);
    color: var(--es-accent);
}

.es-reason__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .5s var(--es-ease);
}

.es-reason.is-active .es-reason__panel {
    grid-template-rows: 1fr;
}

.es-reason__panel > div {
    overflow: hidden;
}

.es-reason__panel p {
    padding-bottom: 26px;
    color: var(--es-ink-2);
    max-width: 52ch;
}

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

    .es-reasons__frame {
        position: relative;
        top: 0;
        aspect-ratio: 4 / 3;
        order: 2;
    }
}

/* ---------- Process timeline (night) ---------- */

.es-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.es-steps::before,
.es-steps::after {
    content: "";
    position: absolute;
    top: 27px;
    left: 28px;
    right: 28px;
    height: 1px;
    background: var(--es-night-line);
}

.es-steps::after {
    background: linear-gradient(90deg, var(--es-accent-soft), rgba(238, 143, 232, .2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.6s var(--es-ease) .2s;
}

.es-steps.is-visible::after {
    transform: scaleX(1);
}

.es-step__marker {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 24px;
    background: var(--es-night-2);
    border: 1px solid var(--es-night-line);
    color: var(--es-accent-soft);
    margin-bottom: 28px;
}

.es-step h3 {
    font-family: var(--es-font-body);
    font-weight: 600;
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--es-on-night);
}

.es-step p {
    margin-top: 10px;
    color: var(--es-on-night-2);
    font-size: 16px;
}

@media (max-width: 900px) {
    .es-steps {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .es-steps::before,
    .es-steps::after {
        top: 28px;
        bottom: 28px;
        left: 27px;
        right: auto;
        width: 1px;
        height: auto;
    }

    .es-steps::after {
        background: linear-gradient(180deg, var(--es-accent-soft), rgba(238, 143, 232, .2));
        transform: scaleY(0);
        transform-origin: top;
    }

    .es-steps.is-visible::after {
        transform: scaleY(1);
    }

    .es-step {
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 20px;
    }

    .es-step__marker {
        margin-bottom: 0;
        grid-row: span 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .es-steps::after {
        transform: none !important;
        transition: none;
    }
}

/* ---------- Feature grid (icon + text, no cards) ---------- */

.es-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 64px;
    margin-top: 56px;
}

.es-features--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 32px;
}

.es-feature {
    padding-top: 28px;
    border-top: 1px solid var(--es-line);
}

.es-night .es-feature {
    border-color: var(--es-night-line);
}

.es-feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 24px;
    background: var(--es-accent-tint);
    color: var(--es-accent);
    margin-bottom: 20px;
}

.es-night .es-feature__icon {
    background: rgba(238, 143, 232, .12);
    color: var(--es-accent-soft);
}

.es-feature p {
    margin-top: 10px;
    color: var(--es-ink-2);
    max-width: 48ch;
}

.es-night .es-feature h3 {
    color: var(--es-on-night);
}

.es-night .es-feature p {
    color: var(--es-on-night-2);
}

@media (max-width: 1000px) {
    .es-features--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .es-features,
    .es-features--4 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---------- Checklist ---------- */

.es-checks {
    margin-top: 24px !important;
    display: grid;
    gap: 12px;
}

.es-checks li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    color: var(--es-ink);
    font-weight: 500;
}

.es-checks li i {
    margin-top: 3px;
    font-size: 18px;
    color: var(--es-accent);
}

/* ---------- Service rows & cards ---------- */

.es-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.es-jump a {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--es-line);
    background: var(--es-surface);
    font-weight: 500;
    font-size: 15.6px;
    text-decoration: none;
    color: var(--es-ink);
    transition: border-color .25s var(--es-ease), background-color .25s var(--es-ease);
}

.es-jump a:hover {
    border-color: var(--es-ink);
}

.es-service + .es-service {
    margin-top: clamp(72px, 9vw, 120px);
}

.es-service {
    scroll-margin-top: 100px;
}

.es-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: clamp(72px, 9vw, 120px);
}

.es-card {
    background: var(--es-surface);
    border-radius: var(--es-radius);
    border: 1px solid var(--es-line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 100px;
}

.es-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.es-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--es-ease);
}

.es-card:hover .es-card__media img {
    transform: scale(1.04);
}

.es-card__body {
    padding: clamp(24px, 3vw, 36px);
}

.es-card__body .es-body {
    margin-top: 12px;
}

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

/* ---------- Proof strip ---------- */

.es-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--es-line);
    border-bottom: 1px solid var(--es-line);
}

.es-proof__item {
    padding: 36px 28px 36px 0;
}

.es-proof__item + .es-proof__item {
    padding-left: 28px;
    border-left: 1px solid var(--es-line);
}

.es-proof__value {
    font-family: var(--es-font-display);
    font-weight: 600;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.05;
}

.es-proof__label {
    margin-top: 8px;
    color: var(--es-ink-3);
    font-size: 15.6px;
}

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

    .es-proof__item:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .es-proof__item:nth-child(n + 3) {
        border-top: 1px solid var(--es-line);
    }
}

/* ---------- Statement block ---------- */

.es-statement {
    font-family: var(--es-font-display);
    font-weight: 600;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.12;
    max-width: 24ch;
}

.es-panorama {
    border-radius: var(--es-radius);
    overflow: hidden;
    aspect-ratio: 1320 / 494;
    background: #000;
}

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

@media (max-width: 640px) {
    .es-panorama {
        aspect-ratio: 4 / 3;
    }
}

/* ---------- Illustration panel ---------- */

.es-illustration {
    border-radius: var(--es-radius);
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    padding: clamp(24px, 4vw, 48px);
    display: grid;
    place-items: center;
}

.es-illustration img {
    width: 100%;
    max-width: 460px;
    height: auto;
}

/* ---------- Savings bento (solar page) ---------- */

.es-duo {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 24px;
    margin-top: 48px;
    align-items: start;
}

.es-duo .es-card:last-child {
    margin-top: 72px;
}

.es-duo .es-card:last-child .es-card__media {
    aspect-ratio: 4 / 3;
}

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

    .es-duo .es-card:last-child {
        margin-top: 0;
    }
}

/* ---------- Banner CTA (tinted) ---------- */

.es-banner {
    border-radius: calc(var(--es-radius) * 1.5);
    background: var(--es-accent-tint);
    padding: clamp(32px, 6vw, 72px);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.es-banner__media {
    margin: 0;
    border-radius: var(--es-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

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

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

/* ---------- FAQ ---------- */

.es-faq {
    display: grid;
    grid-template-columns: 4fr 7fr;
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.es-faq__head {
    position: sticky;
    top: 104px;
}

.es-faq__list {
    border-top: 1px solid var(--es-line);
}

.es-faq details {
    border-bottom: 1px solid var(--es-line);
}

.es-faq summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.es-faq summary::-webkit-details-marker {
    display: none;
}

.es-faq summary i {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--es-surface-2);
    transition: transform .4s var(--es-ease), background-color .3s var(--es-ease), color .3s var(--es-ease);
}

.es-faq details[open] summary i {
    transform: rotate(45deg);
    background: var(--es-accent);
    color: var(--es-on-accent);
}

.es-faq__answer {
    padding-bottom: 28px;
    color: var(--es-ink-2);
    max-width: 64ch;
}

.es-faq__answer ul {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.es-faq__answer strong {
    color: var(--es-ink);
}

@media (prefers-reduced-motion: no-preference) {
    .es-faq details[open] .es-faq__answer {
        animation: es-rise .5s var(--es-ease) both;
    }
}

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

    .es-faq__head {
        position: static;
    }
}

/* ---------- Gallery ---------- */

.es-masonry {
    columns: 3 320px;
    column-gap: 20px;
}

.es-shot {
    break-inside: avoid;
    margin-bottom: 36px;
}

.es-shot__btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--es-surface-2);
    border-radius: var(--es-radius);
    overflow: hidden;
    cursor: zoom-in;
}

.es-shot__btn img {
    width: 100%;
    height: auto;
    transition: transform 1.2s var(--es-ease);
}

.es-shot__btn:hover img {
    transform: scale(1.04);
}

.es-shot figcaption {
    padding-top: 16px;
}

.es-shot figcaption strong {
    display: block;
    font-family: var(--es-font-display);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.1;
}

.es-shot figcaption span {
    display: block;
    margin-top: 6px;
    color: var(--es-ink-2);
    font-size: 16px;
}

.es-lightbox {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(8, 7, 15, .94);
    color: #fff;
}

.es-lightbox[open] {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.es-lightbox::backdrop {
    background: transparent;
}

.es-lightbox__bar {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
}

.es-lightbox__stage {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    min-height: 0;
}

.es-lightbox__stage img {
    max-width: 100%;
    max-height: 72dvh;
    margin: 0 auto;
    border-radius: var(--es-radius-sm);
    object-fit: contain;
}

.es-lightbox__caption {
    text-align: center;
    padding: 20px 16px 32px;
    max-width: 640px;
    margin: 0 auto;
}

.es-lightbox__caption strong {
    display: block;
    font-family: var(--es-font-display);
    font-size: 22px;
}

.es-lightbox__caption span {
    color: rgba(255, 255, 255, .78);
}

.es-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background-color .25s var(--es-ease);
}

.es-icon-btn:hover {
    background: rgba(255, 255, 255, .16);
}

@media (max-width: 640px) {
    .es-lightbox__stage {
        grid-template-columns: 1fr 1fr;
        align-content: center;
        row-gap: 20px;
    }

    .es-lightbox__stage img {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .es-lightbox__stage [data-prev] {
        justify-self: end;
    }

    .es-lightbox__stage [data-next] {
        justify-self: start;
    }
}

/* ---------- Contact ---------- */

.es-contact {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.es-details {
    margin-top: 36px !important;
    display: grid;
    gap: 28px;
}

.es-detail {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: start;
}

.es-detail .es-feature__icon {
    margin: 0;
}

.es-detail__label {
    font-size: 14px;
    color: var(--es-ink-3);
    font-weight: 500;
}

.es-detail__value {
    font-weight: 600;
    color: var(--es-ink);
    text-decoration: none;
}

a.es-detail__value:hover {
    color: var(--es-accent);
}

.es-socials {
    display: flex;
    gap: 10px;
}

.es-socials a {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid var(--es-line);
    font-size: 20px;
    text-decoration: none;
    color: var(--es-ink);
    transition: background-color .25s var(--es-ease), color .25s var(--es-ease), border-color .25s var(--es-ease);
}

.es-socials a:hover {
    background: var(--es-ink);
    color: var(--es-bg);
    border-color: var(--es-ink);
}

.es-form {
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-radius);
    padding: clamp(24px, 4vw, 44px);
    box-shadow: var(--es-shadow);
}

.es-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
}

.es-field {
    display: grid;
    gap: 8px;
}

.es-field--full {
    grid-column: 1 / -1;
}

.es-field label {
    font-weight: 600;
    font-size: 15px;
    color: var(--es-ink);
}

.es-field label span {
    color: var(--es-accent);
}

.es-field input,
.es-field textarea {
    width: 100%;
    font: 400 16px/1.5 var(--es-font-body);
    color: var(--es-ink);
    background: var(--es-bg);
    border: 1px solid var(--es-line);
    border-radius: var(--es-radius-sm);
    padding: 13px 14px;
    transition: border-color .2s var(--es-ease), box-shadow .2s var(--es-ease), background-color .2s var(--es-ease);
}

.es-field textarea {
    resize: vertical;
    min-height: 140px;
}

.es-field input::placeholder,
.es-field textarea::placeholder {
    color: var(--es-ink-3);
}

.es-field input:hover,
.es-field textarea:hover {
    border-color: var(--es-ink-3);
}

.es-field input:focus,
.es-field textarea:focus {
    outline: none;
    border-color: var(--es-accent);
    background: var(--es-surface);
    box-shadow: 0 0 0 4px var(--es-accent-tint);
}

.es-field__hint {
    font-size: 14px;
    color: var(--es-ink-3);
}

.es-alert {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--es-radius-sm);
    font-weight: 500;
}

.es-alert i {
    font-size: 20px;
}

.es-alert--success {
    background: #e5f6ec;
    color: #145c32;
}

.es-alert--error {
    background: #fde9e9;
    color: #8f1d1d;
}

@media (prefers-color-scheme: dark) {
    .es-alert--success {
        background: rgba(52, 199, 116, .14);
        color: #8ce0ae;
    }

    .es-alert--error {
        background: rgba(239, 68, 68, .14);
        color: #fca5a5;
    }
}

.es-form .es-btn {
    width: 100%;
    grid-column: 1 / -1;
    margin-top: 4px;
}

.es-form .es-btn[aria-busy="true"] {
    opacity: .7;
    pointer-events: none;
}

@media (max-width: 900px) {
    .es-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .es-form__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Footer ---------- */

.es-footer {
    background: var(--es-night);
    color: var(--es-on-night);
    font-family: var(--es-font-body);
    font-size: 16px;
    line-height: 1.6;
}

.es-footer a {
    color: inherit;
    text-decoration: none;
}

.es-footer h2,
.es-footer h3,
.es-footer p,
.es-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.es-footer__cta {
    padding: var(--es-section) 0 clamp(56px, 7vw, 96px);
    border-bottom: 1px solid var(--es-night-line);
}

.es-footer__cta-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: end;
}

.es-footer__cta .es-display {
    color: var(--es-on-night);
    font-size: clamp(36px, 5vw, 64px);
    max-width: 16ch;
}

.es-footer__cta p {
    color: var(--es-on-night-2);
    max-width: 46ch;
}

.es-footer__cta .es-actions {
    margin-top: 24px;
}

.es-footer__body {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    padding: 64px 0 48px;
}

.es-footer__brand img {
    height: 36px;
    width: auto;
}

.es-footer__brand p {
    margin-top: 16px;
    color: var(--es-on-night-2);
}

.es-footer .es-socials {
    margin-top: 24px;
}

.es-footer .es-socials a {
    border-color: var(--es-night-line);
    color: var(--es-on-night);
}

.es-footer .es-socials a:hover {
    background: var(--es-on-night);
    color: var(--es-night);
    border-color: var(--es-on-night);
}

.es-footer__heading {
    font-size: 14px;
    font-weight: 600;
    color: var(--es-on-night-2);
    margin-bottom: 16px !important;
}

.es-footer__links {
    display: grid;
    gap: 10px;
}

.es-footer__links a {
    color: var(--es-on-night);
    transition: color .2s var(--es-ease);
}

.es-footer__links a:hover {
    color: var(--es-accent-soft);
}

.es-footer__contact {
    display: grid;
    gap: 10px;
    color: var(--es-on-night);
}

.es-footer__contact a:hover {
    color: var(--es-accent-soft);
}

.es-footer__address {
    color: var(--es-on-night-2);
}

.es-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 0 32px;
    border-top: 1px solid var(--es-night-line);
    color: var(--es-on-night-2);
    font-size: 15px;
}

.es-footer__legal a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.es-footer__legal a:hover {
    color: var(--es-on-night);
}

@media (max-width: 860px) {
    .es-footer__cta-grid,
    .es-footer__body {
        grid-template-columns: 1fr;
    }
}

/* ---------- Utilities ---------- */

.es-mt-sm {
    margin-top: 16px !important;
}

.es-mt-md {
    margin-top: 32px !important;
}

.es-mt-lg {
    margin-top: 56px !important;
}

.es-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.es-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* When a page ends on a night section, the footer continues it without a second gap */
main:has(> .es-night:last-child) + .es-footer .es-footer__cta {
    padding-top: clamp(56px, 7vw, 96px);
    border-top: 1px solid var(--es-night-line);
}

main:has(> .es-night:last-child) > .es-night:last-child {
    padding-bottom: clamp(56px, 7vw, 96px);
}

/* ---------- Quote wizard ---------- */

.es-quote {
    padding-top: 136px;
    color: var(--es-on-night);
    background:
        radial-gradient(55% 60% at 90% 10%, rgba(238, 143, 232, .16), transparent 70%),
        var(--es-night);
}

main:has(.es-quote) + .es-footer {
    border-top: 1px solid var(--es-night-line);
}

.es-quote__intro {
    max-width: 640px;
}

.es-quote__intro .es-lead {
    color: var(--es-on-night-2);
}

.es-quote__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
    margin-top: 40px;
}

.es-wizard {
    background: var(--es-surface);
    color: var(--es-ink);
    border-radius: calc(var(--es-radius) * 1.25);
    padding: clamp(24px, 4vw, 48px);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
    min-height: 520px;
}

.es-wizard__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
}

.es-wizard__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--es-line);
    background: transparent;
    color: var(--es-ink);
    font: 500 15px/1 var(--es-font-body);
    cursor: pointer;
    transition: border-color .25s var(--es-ease);
}

.es-wizard__back:hover {
    border-color: var(--es-ink);
}

.es-wizard__back[hidden] {
    display: none;
}

.es-wizard__count {
    margin: 0 0 0 auto;
    font-size: 15px;
    font-weight: 500;
    color: var(--es-ink-3);
}

.es-wizard__bar {
    height: 4px;
    margin: 16px 0 40px;
    border-radius: 999px;
    background: var(--es-surface-2);
    overflow: hidden;
}

.es-wizard__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--es-accent);
    transition: width .6s var(--es-ease);
}

.es-step-panel {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.es-step-panel legend {
    padding: 0;
    outline: none;
}

@media (prefers-reduced-motion: no-preference) {
    .es-step-panel.is-entering {
        animation: es-step-in .5s var(--es-ease) both;
    }

    .es-step-panel.is-entering-back {
        animation: es-step-in-back .5s var(--es-ease) both;
    }
}

@keyframes es-step-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
}

@keyframes es-step-in-back {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
}

.es-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.es-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: var(--es-radius);
    border: 1px solid var(--es-line);
    background: var(--es-bg);
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.3;
    transition: border-color .2s var(--es-ease), background-color .2s var(--es-ease), transform .2s var(--es-ease);
}

.es-option:hover {
    border-color: var(--es-ink-3);
}

.es-option:active {
    transform: scale(.98);
}

.es-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.es-option i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 24px;
    background: var(--es-surface);
    color: var(--es-ink-2);
    border: 1px solid var(--es-line);
    transition: background-color .2s var(--es-ease), color .2s var(--es-ease), border-color .2s var(--es-ease);
}

.es-option::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1.5px solid var(--es-line);
    transition: border-color .2s var(--es-ease), box-shadow .2s var(--es-ease);
}

.es-option:has(input:checked) {
    border-color: var(--es-accent);
    background: var(--es-accent-tint);
}

.es-option:has(input:checked) i {
    background: var(--es-accent);
    border-color: var(--es-accent);
    color: var(--es-on-accent);
}

.es-option:has(input:checked)::after {
    border-color: var(--es-accent);
    box-shadow: inset 0 0 0 4px var(--es-surface), inset 0 0 0 10px var(--es-accent);
}

.es-option:has(input:focus-visible) {
    outline: 2px solid var(--es-accent);
    outline-offset: 3px;
}

.es-wizard__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
}

.es-wizard .es-form__grid {
    margin-top: 24px;
}

.es-wizard .es-btn[data-submit] {
    grid-column: 1 / -1;
    width: 100%;
}

.es-wizard .es-btn[aria-busy="true"] {
    opacity: .7;
    pointer-events: none;
}

.es-field__error {
    min-height: 0;
    font-size: 14px;
    font-weight: 500;
    color: #b42318;
}

.es-field__error:empty {
    display: none;
}

.es-field input[aria-invalid="true"] {
    border-color: #b42318;
}

@media (prefers-color-scheme: dark) {
    .es-field__error {
        color: #fca5a5;
    }

    .es-field input[aria-invalid="true"] {
        border-color: #f87171;
    }
}

.es-review {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.es-review button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--es-line);
    background: var(--es-bg);
    color: var(--es-ink-2);
    font: 500 14px/1.2 var(--es-font-body);
    cursor: pointer;
    transition: border-color .2s var(--es-ease);
}

.es-review button:hover {
    border-color: var(--es-accent);
}

.es-review button i {
    color: var(--es-ink-3);
}

.es-wizard__done {
    text-align: left;
    padding-top: 24px;
}

.es-wizard__done-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 30px;
    background: var(--es-accent);
    color: var(--es-on-accent);
    margin-bottom: 28px;
}

.es-wizard__done h2 {
    outline: none;
}

.es-quote__aside {
    position: sticky;
    top: 104px;
}

.es-quote__photo {
    margin: 0;
    border-radius: var(--es-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

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

.es-quote__points {
    display: grid;
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.es-quote__points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.es-quote__points i {
    font-size: 22px;
    color: var(--es-accent-soft);
}

.es-quote__call {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--es-night-line);
    color: var(--es-on-night-2);
}

.es-quote__call a {
    color: var(--es-on-night);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 960px) {
    .es-quote__grid {
        grid-template-columns: 1fr;
    }

    .es-quote__aside {
        position: static;
    }

    .es-quote__photo {
        display: none;
    }

    .es-quote__points {
        margin-top: 0;
    }
}

@media (max-width: 560px) {
    .es-quote {
        padding-top: 112px;
    }

    .es-options {
        grid-template-columns: 1fr 1fr;
    }

    .es-option {
        padding: 16px;
    }

    .es-wizard {
        min-height: 0;
    }
}

/* ---------- Text page (privacy policy) ---------- */

.es-header--text {
    min-height: 0;
    padding-top: 152px;
}

.es-header--text::after {
    display: none;
}

.es-policy {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.es-toc {
    position: sticky;
    top: 104px;
}

.es-toc__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--es-ink-3);
    margin-bottom: 12px;
}

.es-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
    border-left: 1px solid var(--es-line);
}

.es-toc a {
    display: block;
    padding: 6px 0 6px 16px;
    margin-left: -1px;
    border-left: 1px solid transparent;
    color: var(--es-ink-2);
    font-size: 15px;
    text-decoration: none;
    transition: color .2s var(--es-ease), border-color .2s var(--es-ease);
}

.es-toc a:hover {
    color: var(--es-ink);
    border-color: var(--es-accent);
}

.es-prose {
    max-width: 70ch;
    color: var(--es-ink-2);
}

.es-prose h2 {
    font-family: var(--es-font-display);
    font-weight: 600;
    font-size: clamp(24px, 2.6vw, 30px);
    line-height: 1.15;
    color: var(--es-ink);
    margin: 56px 0 16px;
    scroll-margin-top: 100px;
}

.es-prose h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--es-ink);
    margin: 28px 0 10px;
}

.es-prose p {
    margin: 0 0 16px;
}

.es-prose ul {
    margin: 0 0 16px;
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.es-prose li::marker {
    color: var(--es-accent);
}

.es-prose strong {
    color: var(--es-ink);
}

.es-prose a {
    color: var(--es-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .es-policy {
        grid-template-columns: 1fr;
    }

    .es-toc {
        position: static;
        padding: 20px;
        border-radius: var(--es-radius);
        background: var(--es-surface-2);
    }

    .es-toc ol {
        border-left: 0;
    }

    .es-toc a {
        padding-left: 0;
        border-left: 0;
    }
}

/* ---------- Cookie banner ---------- */

.es-footer__link-btn {
    margin-left: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.es-footer__link-btn:hover {
    color: var(--es-on-night);
}

.es-cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    border-radius: var(--es-radius);
    border: 1px solid var(--es-line);
    background: var(--es-surface);
    color: var(--es-ink);
    box-shadow: 0 24px 60px -20px rgba(10, 8, 22, .45);
    font-family: var(--es-font-body);
    font-size: 15px;
    line-height: 1.55;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s var(--es-ease), transform .3s var(--es-ease);
}

.es-cookie.is-open {
    opacity: 1;
    transform: none;
}

.es-cookie[hidden] {
    display: none;
}

.es-cookie :is(p, a, button) {
    font-family: var(--es-font-body);
}

.es-cookie p {
    margin: 0;
}

.es-cookie__title {
    font-weight: 600;
    font-size: 16px;
    color: var(--es-ink);
    margin-bottom: 4px !important;
}

.es-cookie__text {
    color: var(--es-ink-2);
}

.es-cookie__text a {
    color: var(--es-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.es-cookie__actions {
    display: flex;
    gap: 10px;
    flex: none;
}

.es-cookie__actions .es-btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: 15px;
}

@media (max-width: 760px) {
    .es-cookie {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px;
    }

    .es-cookie__actions .es-btn {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .es-cookie {
        transition: none;
    }
}

.es-cookie:focus {
    outline: none;
}

/* ---------- Page loader (Bulkit) recoloured to the site theme ---------- */

body .pageloader {
    background-color: var(--es-night) !important;
    background-image: radial-gradient(40% 40% at 50% 50%, rgba(238, 143, 232, .14), transparent 70%);
}

body .pageloader::after {
    background-color: rgba(238, 143, 232, .12);
    border-color: rgba(238, 143, 232, .55);
}

body .pageloader::before {
    background-color: var(--es-accent-soft);
}

body .infraloader {
    background-color: var(--es-night);
}

/* The Elite Solar emblem sits in the centre of the pulsing ring, in place of the dot */
body .pageloader::before {
    display: none;
}

.pageloader__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1000000;
    width: 96px;
    height: auto;
    transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
    body .pageloader::after {
        animation: none;
        opacity: .6;
    }
}
