/* Foundations and centrally owned Gutenberg geometry. */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--wp--preset--color--black);
    color: var(--wp--preset--color--muted);
    font-family: var(--wp--preset--font-family--dm-sans);
    font-size: var(--wp--custom--type--body);
    line-height: 1.8;
}

body.eb-menu-open {
    overflow: hidden;
}

a {
    color: var(--wp--preset--color--accent);
    text-decoration: none;
}

button, input, textarea {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 5px;
}

.eb-site .wp-site-blocks,
.eb-content {
    padding: 0;
}

.eb-site .wp-site-blocks > *,
.eb-content > *,
.eb-main {
    margin-block: 0;
}

.eb-site :where(.eb-shell, .eb-stage, .eb-hero, .eb-intro-copy, .eb-topics-grid, .eb-topic-card, .eb-content) > * {
    margin-block-start: 0;
    max-width: none;
}

.eb-shell {
    width: min(var(--wp--custom--rail--shell), calc(100% - 60px));
    margin-inline: auto;
}

.eb-stage {
    padding-block: var(--wp--custom--space--stage);
}

h1, h2, h3, h4, p, figure {
    margin: 0;
}

h1, h2, h3, h4 {
    color: var(--wp--preset--color--white);
    font-weight: 500;
}

h2 {
    font-size: var(--wp--custom--type--display);
    line-height: 1.2;
    letter-spacing: -2.5px;
}

h3 {
    font-size: 30px;
    line-height: 1.4;
    letter-spacing: -2px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.eb-accent,
.eb-eyebrow {
    color: var(--wp--preset--color--accent);
}

.eb-eyebrow {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 19.39px;
}

.eb-site .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 51px;
    padding: 12px 37px;
    border: 0;
    border-radius: 100px;
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--black);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.9;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background-color .3s, color .3s;
}

.eb-site .wp-block-button__link:hover {
    background: var(--wp--preset--color--white);
}

/* Header, editable navigation and its mobile drawer. */
.eb-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 30;
    height: 100px;
    transition: transform .4s, background-color .4s;
}

.eb-header.is-sticky {
    position: fixed;
    background: rgba(0, 0, 0, .91);
    backdrop-filter: blur(8px);
}

.eb-header.is-hidden {
    transform: translateY(-100%);
}

.eb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.eb-brand img {
    width: 166.6px;
}

.eb-navigation .wp-block-navigation__container {
    gap: 60px;
    padding-right: 40px;
}

.eb-navigation a {
    font-size: 14px;
    font-weight: 600;
    line-height: 80px;
    color: #909090;
    text-transform: uppercase;
}

.eb-navigation a:hover,
.eb-navigation a[aria-current="page"] {
    color: #fff;
}

.eb-menu-toggle,
.eb-menu-close,
.eb-menu-backdrop,
.eb-drawer-brand {
    display: none;
}

/* Home first viewport and contrasting calibration stages. */
.eb-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.eb-hero-image {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
}

.eb-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.eb-hero-copy {
    position: relative;
    padding-top: 180px;
}

.eb-hero-copy > * {
    max-width: 612px;
}

.eb-hero h1 {
    font-size: var(--wp--custom--type--hero);
    line-height: 1.2;
    letter-spacing: -2.5px;
}

.eb-hero .wp-block-buttons {
    margin-top: 40px;
}

.eb-intro {
    background: var(--wp--preset--color--stage);
    padding-top: 110px;
    padding-bottom: 19.2px;
}

.eb-intro-copy {
    width: min(var(--wp--custom--rail--intro), calc(100% - 80px));
    margin-inline: auto;
    text-align: center;
}

.eb-intro-copy > p:not(.eb-eyebrow) {
    margin-top: 30px;
}

.eb-intro-copy .wp-block-buttons {
    justify-content: center;
    margin-top: 40px;
}

.eb-carousel {
    margin-top: 130px;
    overflow: hidden;
    touch-action: pan-y;
}

.eb-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 1s ease;
}

.eb-carousel-track > figure {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
}

.eb-carousel-track img {
    width: 100%;
    aspect-ratio: 1.4995;
    object-fit: cover;
}

.eb-topics h2 {
    max-width: 700px;
}
.eb-topics { padding-bottom: 110px; }

.eb-topics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px 40px;
    margin: 90px 10px 0;
}

.eb-topic-card {
    padding: 50px;
    border: 2px solid var(--wp--preset--color--panel);
    background: var(--wp--preset--color--panel);
    transition: background-color .4s;
}

.eb-topic-card:hover {
    background: transparent;
}

.eb-topic-card h3 {
    margin-bottom: 20px;
}

.eb-topic-card > p:last-child {
    margin-bottom: 4.4px;
}

/* Footer retains its source-specific functional rail. */
.eb-site .eb-footer {
    margin-top: 20px;
    background: var(--wp--preset--color--footer);
}

.eb-footer-rail {
    width: min(var(--wp--custom--rail--footer), calc(100% - 50px));
    margin-inline: auto;
    padding-top: 70px;
    padding-bottom: 27px;
}

.eb-footer-grid {
    display: grid;
    grid-template-columns: 352fr 345fr 333fr;
    gap: 40px;
    min-height: 282px;
}

.eb-footer-logo img {
    width: 300px;
}

.eb-footer-links h4 {
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.eb-footer-navigation .wp-block-navigation__container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.eb-footer-navigation a {
    color: var(--wp--preset--color--muted);
}

.eb-copyright {
    padding-top: 20px;
    border-top: 1px solid #27282c;
}

/* Responsive ownership: tablet at 1024; phone at 767. */
@media (max-width: 1024px) {
    body {
        font-size: 15px;
    }

    h2 {
        font-size: 60px;
    }

    h3 {
        font-size: 28px;
    }

    .eb-eyebrow {
        font-size: 17px;
        line-height: 27px;
    }

    .eb-hero-copy {
        padding-top: 60px;
    }

    .eb-hero-copy > * {
        max-width: 100%;
    }

    .eb-hero h1 {
        font-size: 80px;
    }

    .eb-intro {
        padding-top: 80px;
    }

    .eb-header {
        height: 100px;
    }

    .eb-header-inner {
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
    }

    .eb-brand img {
        width: 110px;
    }

    .eb-menu-toggle {
        display: flex;
        width: 40px;
        height: 45px;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        border: 0;
        background: transparent;
        padding: 5px;
    }

    .eb-menu-toggle span {
        height: 2px;
        width: 24px;
        background: #fff;
    }

    .eb-js .eb-menu {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(90vw, 350px);
        height: 100dvh;
        overflow-y: auto;
        background: #111;
        padding: 25px 30px;
        transform: translateX(-101%);
        visibility: hidden;
        transition: transform .4s, visibility 0s .4s;
        z-index: 2;
    }

    .eb-js .eb-menu.is-open {
        transform: none;
        visibility: visible;
        transition-delay: 0s;
    }

    .eb-js .eb-menu-backdrop.is-open {
        display: block;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        border: 0;
        background: rgba(255, 255, 255, .1);
    }

    .eb-drawer-brand {
        display: block;
        margin-bottom: 38px;
    }

    .eb-menu-close {
        display: block;
        position: absolute;
        top: 14px;
        right: 19px;
        width: 30px;
        height: 34px;
        padding: 0;
        border: 0;
        color: #fff;
        font-size: 13px;
        background: transparent;
    }

    .eb-navigation .wp-block-navigation__container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-right: 0;
    }

    .eb-navigation a {
        line-height: 40px;
    }

    .eb-site:not(.eb-js) .eb-menu-toggle,
    .eb-site:not(.eb-js) .eb-menu-close,
    .eb-site:not(.eb-js) .eb-drawer-brand {
        display: none;
    }

    .eb-site:not(.eb-js) .eb-navigation .wp-block-navigation__container {
        flex-direction: row;
        gap: 25px;
    }

    .eb-footer-grid {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 30px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .eb-header { height: 76.5px; }
    .eb-header-inner { flex-direction: row; align-items: center; gap: 75px; }
    .eb-brand img { width: 97.7px; }
    .eb-menu-toggle { margin: 0; }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .eb-shell {
        width: calc(100% - 40px);
    }

    .eb-stage {
        padding-block: var(--wp--custom--space--mobile-stage);
    }

    h2 {
        font-size: 48px;
    }

    h3 {
        font-size: 25px;
    }

    .eb-eyebrow {
        line-height: 25.2px;
    }

    .eb-header {
        height: 108.3px;
    }

    .eb-brand img {
        width: 100.8px;
    }

    .eb-menu-toggle {
        margin-top: 13px;
    }

    .eb-hero-copy {
        padding-top: 150px;
    }

    .eb-hero h1 {
        font-size: 60px;
    }

    .eb-site .wp-block-button__link {
        min-height: 49px;
        font-size: 13px;
        padding-inline: 37px;
    }

    .eb-intro {
        padding-top: 80px;
        padding-bottom: 73px;
    }

    .eb-intro-copy {
        width: calc(100% - 60px);
    }

    .eb-carousel {
        margin-top: 134px;
    }

    .eb-carousel-track > figure {
        flex-basis: 100%;
    }

    .eb-topics-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 70px 0 0;
    }
    .eb-topics { padding-bottom: 70px; }

    .eb-topic-card {
        padding: 50px;
    }

    .eb-topic-card > p:last-child {
        margin-bottom: 12.6px;
    }

    .eb-site .eb-footer {
        margin-top: 0;
    }

    .eb-footer-rail {
        padding-top: 45px;
        padding-bottom: 16px;
    }

    .eb-footer-grid {
        display: block;
        min-height: 543px;
    }

    .eb-footer-logo img {
        width: 182.5px;
    }

    .eb-footer-description,
    .eb-footer-links {
        width: 179px;
    }

    .eb-footer-links {
        margin-top: 64px;
    }

    .eb-footer-links h4 {
        font-size: 13px;
        margin-bottom: 28px;
    }

    .eb-copyright {
        padding-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .01ms;
        transition-duration: .01ms;
    }
}
