.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: clamp(520px, 43vw, 660px);
    overflow: hidden;
    border-bottom: 1px solid var(--line)
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(18, 15, 13, .94), rgba(18, 15, 13, .77) 25%, rgba(18, 15, 13, .21) 65%, rgba(18, 15, 13, .05)), linear-gradient(0deg, var(--bg), transparent 18%)
}

.hero h1 {
    font-size: clamp(3.32rem, 6.96vw, 6.48rem);
    line-height: .89;
    margin: 22px 0 20px;
    letter-spacing: -.06em
}

.hero h1 em {
    color: var(--gold-bright);
    font-style: normal
}

.hero p {
    font: 1.38rem/1.43 var(--story);
    max-width: 405px;
    margin-bottom: 24px
}

.hero .button {
    margin: 0 .55rem .45rem 0
}

.home-section {
    padding-block: 34px 12px;
    margin-bottom: 30px;
}

.home-section+.home-section {
    margin-top: 30px;
    padding-bottom: 56px
}

.portrait-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px
}

.portrait-grid .portrait.no-image {
    background: var(--wood)
}

.feature-grid,
.grid,
.bento,
.skill-grid {
    display: grid;
    gap: 18px
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.feature-grid .art-card {
    min-height: 295px
}

.feature-grid h3 {
    font-size: 1.65rem
}

.secondary-links,
.section-actions,
.sim-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px
}

.home-section .demo {
    margin: 3px 0 0
}

@media (max-width:900px) {
    .portrait-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr))
    }
}

@media (max-width:620px) {
    .hero {
        min-height: 505px
    }

    .hero::after {
        background: linear-gradient(90deg, rgba(18, 15, 13, .88), rgba(18, 15, 13, .42) 85%), linear-gradient(0deg, var(--bg), transparent 25%)
    }

    .hero h1 {
        font-size: clamp(3.35rem, 13vw, 5rem)
    }

    .portrait-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .feature-grid,
    .bento,
    .editorial,
    .sim-grid,
    .skill-grid {
        grid-template-columns: 1fr
    }

    .art-card,
    .feature-grid .art-card {
        min-height: 238px
    }
}
