/* Home */
.et-home { overflow: hidden; }

.et-section {
    position: relative;
    isolation: isolate;
}

.et-section + .et-section:before,
.et-footer:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -7px;
    height: 14px;
    background:
        linear-gradient(135deg, transparent 7px, currentColor 0) 0 0 / 48px 14px repeat-x,
        linear-gradient(225deg, transparent 7px, currentColor 0) 24px 0 / 48px 14px repeat-x;
    color: inherit;
    opacity: 1;
    pointer-events: none;
}

.et-home-hero {
    padding: 74px 0 82px;
    background:
        radial-gradient(circle at 74% 30%, color-mix(in srgb, transparent 88%, var(--color-primary)), transparent 30rem),
        linear-gradient(180deg, #18191e, #131419);
    color: #18191e;
}

.et-hero-grid,
.et-staff-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(44px, 7vw, 90px);
}

.et-art-frame {
    position: relative;
    min-height: 320px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 3px solid #efeae1;
    border-radius: 5px;
    background:
        radial-gradient(circle at 50% 45%, color-mix(in srgb, transparent 72%, var(--color-primary)), transparent 48%),
        linear-gradient(135deg, #272932, #16171b);
    box-shadow: var(--et-shadow);
}

.et-art-frame:before,
.et-art-frame:after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .25;
}
.et-art-frame:before { left: -60px; top: -60px; background: var(--color-primary); }
.et-art-frame:after { right: -80px; bottom: -80px; background: #58d5ff; }

.et-art-frame img {
    position: relative;
    z-index: 1;
    width: min(68%, 275px);
    height: auto;
    max-height: 78%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(0,0,0,.42));
}

.et-eyebrow {
    display: inline-block;
    color: var(--et-red-light);
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: .11em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.et-hero-copy h1,
.et-news-intro h2,
.et-staff-copy h2 {
    color: var(--et-text);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: -.025em;
    text-shadow: 0 4px 0 rgba(0,0,0,.22);
}

.et-hero-copy h1 {
    max-width: 720px;
    font-size: clamp(42px, 5vw, 70px);
    line-height: .98;
    margin-bottom: 22px;
}

.et-hero-copy p,
.et-news-intro p,
.et-staff-copy p {
    max-width: 710px;
    color: #c4c3c7;
    line-height: 1.75;
    font-size: 16px;
}

.et-button {
    min-height: 50px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 27px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.13);
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: .015em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0,0,0,.24);
    transition: transform .16s ease, filter .16s ease;
}

.et-button:hover { transform: translateY(-2px); filter: brightness(1.08); }

.et-button-primary {
    background: linear-gradient(180deg, var(--et-red-light), var(--et-red));
    box-shadow: 0 4px 0 var(--et-red-dark), inset 0 1px rgba(255,255,255,.22);
}

.et-button-discord {
    background: linear-gradient(180deg, #8178ff, #6258e6);
    box-shadow: 0 4px 0 #38319d, inset 0 1px rgba(255,255,255,.2);
}

.et-button-secondary {
    background: linear-gradient(180deg, #4bb6ef, #339bd5);
    box-shadow: 0 4px 0 #1a5f8b, inset 0 1px rgba(255,255,255,.2);
}

.et-button-outline {
    margin-top: 0;
    background: #202228;
    border-color: #41434c;
    box-shadow: 0 4px 0 #0e0f12;
}

.et-news-section {
    color: #181a1f;
    padding: 80px 0 84px;
    background:
        radial-gradient(circle at 85% 20%, rgba(228,71,91,.08), transparent 24rem),
        #181a1f;
}

.et-news-intro {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 50px;
    align-items: center;
    margin-bottom: 44px;
}

.et-news-intro h2,
.et-staff-copy h2 {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
    margin-bottom: 17px;
}

.et-news-mascot {
    width: 245px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    justify-self: end;
    opacity: .9;
    filter: drop-shadow(0 20px 24px rgba(0,0,0,.36));
}

.et-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.et-post-card,
.et-empty-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--et-border);
    border-radius: 7px;
    background: var(--et-panel);
    color: var(--et-muted);
    box-shadow: 0 9px 24px rgba(0,0,0,.18);
    transition: transform .18s ease, border-color .18s ease;
}

.et-post-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, transparent 55%, var(--color-primary));
}

.et-post-image {
    display: block;
    height: 220px;
    overflow: hidden;
    background: #111216;
}

.et-post-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.et-post-card:hover .et-post-image > img { transform: scale(1.035); }

.et-post-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(228,71,91,.2), transparent 52%),
        linear-gradient(135deg, #262831, #141519);
}

.et-post-placeholder img {
    width: 128px;
    height: auto;
    max-height: 82%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,.38));
}

.et-post-body { padding: 22px; }

.et-post-tag {
    display: block;
    margin-bottom: 8px;
    color: var(--et-red-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.et-post-body h3 {
    color: var(--et-text);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 10px;
}

.et-post-body > p {
    min-height: 43px;
    color: #b7b8bd;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.et-post-meta {
    margin-top: 18px;
    padding: 11px 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #31333a;
    border-radius: 6px;
    background: #191a1f;
    color: #9d9fa6;
    font-size: 11px;
}

.et-post-author { display: flex; align-items: center; gap: 8px; min-width: 0; }
.et-post-author img,
.et-post-author span {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25272d;
    object-fit: cover;
}
.et-post-author small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.et-post-meta time { white-space: nowrap; }

.et-empty-card { padding: 28px; }
.et-empty-card h3 { color: var(--et-text); font-size: 22px; margin-bottom: 8px; }

.et-section-action {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.et-staff-section {
    color: #131419;
    padding: 78px 0 84px;
    background:
        radial-gradient(circle at 18% 50%, rgba(228,71,91,.09), transparent 28rem),
        #131419;
}

.et-staff-art {
    min-height: 310px;
    display: grid;
    place-items: center;
    border: 3px solid #f0ece4;
    border-radius: 5px;
    overflow: hidden;
    background: linear-gradient(135deg, #25272f, #16171b);
    box-shadow: var(--et-shadow);
}

.et-staff-art img {
    width: min(67%, 240px);
    height: auto;
    max-height: 78%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(0,0,0,.42));
}


/* Home refinements */
.et-home-hero { background: radial-gradient(circle at 74% 30%, color-mix(in srgb, transparent 88%, var(--color-primary)), transparent 30rem), radial-gradient(circle at 18% 50%, rgba(111,118,255,.08), transparent 20rem), linear-gradient(180deg,#191a1f,#131419); }
.et-art-frame-home,.et-art-frame-staff { min-height:340px; border-color:rgba(245,237,228,.94); background:radial-gradient(circle at 50% 42%,color-mix(in srgb,transparent 80%,var(--color-primary)),transparent 47%),linear-gradient(135deg,#2b2430,#16171b 72%); }
.et-hero-actions { display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.et-hero-actions .et-button { margin-top:27px; }
.et-hero-copy h1 { max-width:760px; }
.et-news-intro p,.et-staff-copy p,.et-hero-copy p { color:#c8c7cd; }
@media (max-width:860px){.et-hero-actions{flex-direction:column;align-items:stretch}.et-hero-actions .et-button{width:100%}}
@media (max-width:767px){.et-art-frame-home,.et-art-frame-staff{min-height:280px}}


/* v1.6.2 — responsive home layout and image proportion fix */
.et-staff-art {
    min-height: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.et-staff-art > .et-art-frame {
    width: 100%;
}

.et-hero-art,
.et-hero-copy,
.et-staff-art,
.et-staff-copy,
.et-news-intro > * {
    min-width: 0;
}

@media (max-width: 900px) {
    .et-hero-grid,
    .et-staff-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .et-hero-art,
    .et-staff-art {
        width: 100%;
        max-width: 620px;
        margin-inline: auto;
    }

    .et-hero-copy,
    .et-staff-copy {
        text-align: center;
    }

    .et-hero-copy p,
    .et-staff-copy p {
        margin-inline: auto;
    }

    .et-news-intro {
        grid-template-columns: minmax(0, 1fr);
    }

    .et-news-mascot {
        display: none;
    }

    .et-art-frame-home,
    .et-art-frame-staff {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .et-art-frame img,
    .et-staff-art img {
        width: min(52%, 260px);
        height: auto;
        max-height: 72%;
        object-fit: contain;
    }

    .et-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .et-home-hero,
    .et-news-section,
    .et-staff-section {
        padding: 42px 0 50px;
    }

    .et-hero-grid,
    .et-staff-grid {
        gap: 28px;
    }

    .et-art-frame-home,
    .et-art-frame-staff {
        width: 100%;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .et-art-frame img,
    .et-staff-art img {
        width: min(55%, 205px);
        height: auto;
        max-height: 72%;
    }

    .et-hero-copy h1 {
        max-width: 100%;
        font-size: clamp(34px, 10vw, 44px);
        line-height: 1.02;
        overflow-wrap: normal;
        word-break: normal;
    }

    .et-news-intro h2,
    .et-staff-copy h2 {
        font-size: clamp(30px, 9vw, 38px);
    }

    .et-hero-actions {
        width: 100%;
    }

    .et-post-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* v1.6.5 — Complex-inspired mobile homepage composition */
@media (max-width: 900px) {
    .et-home-hero,
    .et-news-section,
    .et-staff-section {
        padding: 68px 0 74px;
    }

    .et-hero-grid,
    .et-staff-grid {
        gap: 42px;
    }

    .et-art-frame-home,
    .et-art-frame-staff {
        aspect-ratio: 16 / 9;
        min-height: 0;
        border-width: 3px;
    }

    .et-art-frame img,
    .et-staff-art img {
        width: min(44%, 235px);
        max-height: 78%;
    }

    .et-hero-copy,
    .et-staff-copy,
    .et-news-intro {
        text-align: center;
    }

    .et-eyebrow {
        margin-bottom: 12px;
    }

    .et-hero-copy h1 {
        margin-inline: auto;
        max-width: 650px;
        font-size: clamp(46px, 9vw, 64px);
        line-height: 1.04;
    }

    .et-hero-copy p,
    .et-news-intro p,
    .et-staff-copy p {
        max-width: 660px;
        margin-inline: auto;
        font-size: 16px;
        line-height: 1.75;
    }

    .et-hero-actions {
        max-width: 560px;
        margin-inline: auto;
    }

    .et-news-intro {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
        margin-bottom: 48px;
    }

    .et-news-intro > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .et-news-mascot {
        order: -1;
        display: block;
        width: 190px;
        height: auto;
        margin-inline: auto;
        opacity: .95;
    }

    .et-news-intro h2,
    .et-staff-copy h2 {
        font-size: clamp(42px, 8vw, 56px);
        line-height: 1.05;
    }

    .et-post-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 620px;
        margin-inline: auto;
    }

    .et-section-action {
        margin-top: 38px;
    }

    .et-section-action .et-button {
        min-width: 210px;
    }
}

@media (max-width: 620px) {
    .et-home-hero,
    .et-news-section,
    .et-staff-section {
        padding: 54px 0 62px;
    }

    .et-hero-grid,
    .et-staff-grid {
        gap: 34px;
    }

    .et-art-frame-home,
    .et-art-frame-staff {
        aspect-ratio: 16 / 9;
        border-radius: 4px;
    }

    .et-art-frame img,
    .et-staff-art img {
        width: min(43%, 180px);
        max-height: 76%;
    }

    .et-eyebrow {
        font-size: 12px;
    }

    .et-hero-copy h1 {
        font-size: clamp(39px, 12vw, 52px);
        line-height: 1.06;
        margin-bottom: 24px;
    }

    .et-news-intro h2,
    .et-staff-copy h2 {
        font-size: clamp(38px, 11vw, 48px);
    }

    .et-hero-copy p,
    .et-news-intro p,
    .et-staff-copy p {
        font-size: 15px;
        line-height: 1.72;
    }

    .et-button {
        min-height: 58px;
        font-size: 14px;
    }

    .et-news-mascot {
        width: 165px;
    }

    .et-post-card,
    .et-empty-card {
        border-radius: 8px;
    }

    .et-post-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .et-post-body {
        padding: 20px;
    }

    .et-section-action .et-button {
        width: min(100%, 260px);
    }
}
