hero-section {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    min-height: calc(var(--svh) * 100);
    height: 100%;
}

.hero-section .section-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: max(48px, 3.34vw);
}

.hero-section h1 {
    max-width: max(calc(1152px * var(--heading-font-scale)), calc(80vw * var(--scale) * var(--heading-font-scale)));
}

.hero-link {
    text-decoration: none;
    color: currentColor;
    width: fit-content;
}

.background-image {
    position: absolute;
    inset: 0;
}

.background-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: black;
    opacity: var(--overlay-background-opacity);
}

.background-image figure::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--text-color);
    opacity: 0.2;
}

.hero-section-w-image {
    color: var(--overlay-text-color);
    position: absolute;
    inset: 0;
    clip-path: circle(var(--circle-width) at center);
}

.hero-section-w-image.relative-hero {
    position: relative;
}

/* Excerpt and metadata text in dark (image) post headers */
.hero-section.dark-scramble .post-excerpt-wrapper p{color:var(--overlay-text-color);opacity:.85}
.hero-section.dark-scramble .section-bottom .medium,.hero-section.dark-scramble .section-bottom p:not(.medium),.hero-section.dark-scramble .section-bottom .bottom-item-links a,.hero-section.dark-scramble .section-bottom .bottom-item-links span{color:var(--overlay-text-color)}

.hero-section-w-image[data-type="Full Image"],
.hero-section-w-image[data-type="Full Image Centered"] {
    clip-path: none;
}

.secondary-hero {
    padding-top: max(180px, 20vh);
    padding-bottom: max(42px, calc(2.92vw * var(--scale)));
}

html[data-lines="false"][data-card-type="Normal"] .secondary-hero {
    padding-bottom: max(21px, calc(1.46vw * var(--scale)));
}

.secondary-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.secondary-hero-inner .secondary-hero-title {
    padding: 0 max(24px, 1.67vw);
}

.secondary-hero-inner .secondary-hero-paragraph {
    padding: 0 max(24px, 1.67vw);
    width: calc(100% / 3);
    margin-bottom: max(4px, calc(0.28vw * var(--scale)));
}  

.grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--text-color);
    opacity: var(--lines-opacity);
}

.grid.no-line::after {
    content: none;
}

html[data-lines="false"][data-card-type="Normal"] .grid::after {
    content: none;
}

.hero-excerpt {
    margin-top: 16px;
    max-width: 50%;
    font-size: max(20px, calc(1.39vw * var(--scale)));
    letter-spacing: -0.04em;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.hero-section .section-bottom .bottom-item:nth-of-type(2) {
    display: none;
}

@media screen and (max-width: 1080px) {
    .hero-section-w-image {
        clip-path: circle(var(--circle-width) at center);
    }

    .hero-section h1 {
        font-size: max(calc(112px * var(--heading-font-scale)), calc(13.75vw * var(--scale) * var(--heading-font-scale)));
        max-width: 75%;
    }

    .hero-section .spacer {
        display: none;
    }

    .hero-section .section-inner {
        justify-content: center;
    }

    .hero-section .section-bottom {
        margin-top: auto;
    }

    .hero-title-group {
        margin-top: auto;
    }

    .hero-excerpt {
        max-width: 75%;
    }

    .secondary-hero {
        padding-top: max(126px, 17vh);
        padding-bottom: 40px;
    }

    .secondary-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .secondary-hero-inner .secondary-hero-paragraph {
        padding: 0 max(24px, 1.67vw);
        width: 100%;
        margin-bottom: 0px;
    }  
}

@media screen and (max-width: 767px) {
    .hero-section-w-image .section-bottom {
        flex-direction: column;
    }

    .hero-section-w-image .button-arrow {
        margin-left: 0;
    }

    .hero-section h1 {
        font-size: max(calc(58px * var(--heading-font-scale)), calc(16vw * var(--scale) * var(--heading-font-scale)));
    }

    .secondary-hero {
        padding-top: max(98px, 16vh);
        padding-bottom: 32px;
    }

    .secondary-hero-inner .secondary-hero-paragraph {
        padding: 0 18px;
    }

    .secondary-hero-inner .secondary-hero-title {
        padding: 0 18px;
    }
}

/* ===== BRRR DAO Orange - Homepage Hero Text ===== */
.hero-section.hero-section-w-image{color:#FE6015}
.hero-section.hero-section-w-image .navbar{color:#FE6015}
.hero-section.hero-section-w-image .button-animated{color:#FE6015}
.post-header-circle-bottom.hero-section-w-image .post-excerpt-wrapper p{color:var(--overlay-text-color);opacity:.85}
.post-header-circle-bottom.hero-section-w-image .section-bottom .medium,.post-header-circle-bottom.hero-section-w-image .section-bottom p:not(.medium),.post-header-circle-bottom.hero-section-w-image .section-bottom .bottom-item-links a,.post-header-circle-bottom.hero-section-w-image .section-bottom .bottom-item-links span{color:var(--overlay-text-color)}
@media screen and (max-width:1080px){.post-header-circle-bottom.hero-section-w-image .section-inner{padding-top:max(80px,12vh)}}
.post-header-circle-bottom.hero-section-w-image .post-excerpt-wrapper p,.post-header-circle-bottom.hero-section-w-image .section-bottom .medium,.post-header-circle-bottom.hero-section-w-image .section-bottom p:not(.medium),.post-header-circle-bottom.hero-section-w-image .section-bottom .bottom-item-links a,.post-header-circle-bottom.hero-section-w-image .section-bottom .bottom-item-links span{text-shadow:0 1px 8px rgba(0,0,0,.9),0 0 4px rgba(0,0,0,.9)}