﻿:root {
    --article-accent: #54243D;
}

.fa-header--solid {
    background: rgba(17, 17, 17, .34);
    border-bottom-color: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
}

.article {
    background: #ffffff;
    color: #17171A;
    padding: clamp(104px, 13vh, 150px) clamp(20px, 4.5vw, 72px) clamp(72px, 11vh, 140px);
}

.article__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.article__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, .58);
    transition: color .3s ease;
    text-decoration: unset;
}

    .article__back:hover {
        color: #111111;
    }

.article__kicker {
    margin: clamp(26px, 4vh, 44px) 0 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--article-accent);
}

.article__tags {
    margin: 12px 0 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, .5);
}

.article__title {
    color: #000;
    margin: clamp(20px, 3vh, 30px) 0 0;
    font-size: clamp(32px, 4.4vw, 64px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.042em;
    max-width: 26ch;
    text-wrap: balance;
}

.article__meta {
    margin: clamp(20px, 3vh, 30px) 0 0;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, .5);
}

.article__hero-image {
    margin: clamp(30px, 4.6vh, 52px) 0 0;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
    border-radius: 24px;
    overflow: hidden;
    background: #241019;
}

    .article__hero-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.article__lead {
    margin: clamp(30px, 4.4vh, 50px) 0 0;
    max-width: 90ch;
}

    .article__lead p {
        font-size: clamp(17px, 1.7vw, 23px);
        font-weight: 450;
        letter-spacing: -.018em;
        color: #26232A;
        text-wrap: pretty;
    }

/* ---------- Membership gate ---------- */

.article__gate {
    margin: clamp(32px, 4.6vh, 56px) 0 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: linear-gradient(150deg, #2A101A 0%, #1A0B12 62%, #141014 100%);
    padding: clamp(28px, 4vw, 56px);
    color: #ffffff;
}

    .article__gate::before {
        content: "";
        position: absolute;
        right: -10%;
        top: -52%;
        width: min(46vw, 600px);
        aspect-ratio: 1;
        z-index: 0;
        pointer-events: none;
        background: radial-gradient(50% 50% at 50% 50%, rgba(122, 45, 78, .42), rgba(84, 36, 61, 0) 70%);
        filter: blur(26px);
        animation: article-aurora 13s ease-in-out infinite;
    }

@keyframes article-aurora {
    0%, 100% {
        transform: translate3d(-4%, 2%, 0) scale(1);
    }

    50% {
        transform: translate3d(8%, -7%, 0) scale(1.2);
    }
}

.article__gate-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.4vh, 24px);
}

.article__gate-badge {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--article-accent);
    border-radius: 999px;
    padding: 7px 14px;
}

.article__gate-title {
    margin: 0;
    font-size: clamp(21px, 2.4vw, 34px);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -.032em;
    color: #ffffff;
}

.article__gate-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.68;
    color: rgba(255, 255, 255, .72);
    text-wrap: pretty;
    max-width: 62ch;
}

.article__gate-form {
    margin-top: clamp(4px, 1vh, 10px);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    max-width: 62ch;
}

.article__gate-field {
    display: contents;
}

.article__gate-input {
    flex: 1 1 260px;
    min-width: 0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    padding: 16px 22px;
    font-size: 15px;
    color: #ffffff;
    transition: border-color .3s ease, background .3s ease;
}

    .article__gate-input:focus {
        outline: none;
        border-color: #54243D;
        background: rgba(255, 255, 255, .07);
    }

.article__gate-submit {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #111111;
    border: 0;
    border-radius: 999px;
    padding: 16px 30px;
    min-height: 52px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

    .article__gate-submit:hover {
        transform: translateY(-3px);
    }

.article__gate-note {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .5);
    max-width: 62ch;
}

    .article__gate-note a {
        color: rgba(255, 255, 255, .72);
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color .3s ease;
    }

    .article__gate-note a:hover {
        color: #fff;
    }

.article__lead-fade-wrap {
    position: relative;
    max-height: 8.6em;
    overflow: hidden;
    margin-top: clamp(14px, 2vh, 20px);
}

    .article__lead-fade-wrap p {
        margin: 0;
    }

    .article__lead-fade-wrap::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 8.2em;
        background: linear-gradient( to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .35) 35%, rgba(255, 255, 255, .75) 65%, #ffffff 100% );
        pointer-events: none;
    }

.article__read-more {
    background: none;
    border: 0;
    cursor: pointer;
    margin-top: auto;
    padding-top: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #17171A;
    font-family: var(--font-primary);
}

.read-more__arrow {
    display: inline-block;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

.article__read-more:hover .read-more__arrow {
    transform: translateX(4px);
}

/* ---------- Gate as modal ---------- */

.article__gate-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
}

    .article__gate-modal.is-open {
        display: flex;
    }

.article__gate-modal-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: #18181A;
    padding: clamp(24px, 3vw, 40px);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.4vh, 22px);
    align-items: flex-start;
    transition: border-color .5s ease, background .5s ease, box-shadow .5s ease;
}

.article__gate-modal-box:hover {
    border-color: #54243D;
    box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .95);
}

.article__gate-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}

    .article__gate-modal-close:hover {
        background: rgba(255, 255, 255, .16);
    }

.article__gate-modal-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.2vh, 22px);
}

.article__gate-modal-title {
    margin: 0;
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.65;
    color: rgb(255 255 255 / 72%);
    max-width: 52ch;
    padding-right: 30px;
}

.article__gate-modal-form {
    margin-top: clamp(4px, 1vh, 10px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-direction: row !important;
}

.article__gate-modal-input {
    flex: 1 1 auto;
    min-width: 0;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 15px 22px;
    min-height: 50px;
    font-size: 14.5px;
    font-weight: 450;
    color: rgb(255 255 255 / 72%);
    transition: border-color .35s ease, background .35s ease, transform .35s cubic-bezier(.16, 1, .3, 1);
    box-sizing: border-box;
}

    .article__gate-modal-input:focus {
        border-color: #54243D;
        background: rgba(255, 255, 255, .07);
        outline: none;
    }

/* ---------- Gate result messages ---------- */

.article__gate-message {
    margin: 0 0 4px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
}

.article__gate-message--error {
    color: #ffb4c6;
}

.article__gate-message--success {
    margin: clamp(24px, 3.4vh, 34px) 0 0;
    color: #1c7a4d;
}

.article__gate-input-error {
    display: none;
    font-size: 12.5px;
    font-weight: 500;
    color: rgb(255 92 92 / 60%);
    padding: 2px 6px 0;
    line-height: 1.4;
    width: 100%;
}

    .article__gate-input-error.is-visible {
        display: block;
    }

.article__gate-input.is-invalid,
.article__gate-modal-input.is-invalid {
    border-color: rgb(255 92 92 / 40%) !important;
}

.article__gate-success {
    margin: 0;
    padding: 6px 34px 0;
    font-size: clamp(19px, 2vw, 26px);
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    text-align: center;
}

/* ---------- Gated body content ---------- */

.article__body {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1);
}

    .article__body.is-unlocked {
        max-height: none;
        overflow: visible;
        visibility: visible;
        opacity: 1;
    }

.article__body-inner {
    max-width: 80ch;
}

    .article__body-inner h2 {
        margin: clamp(40px, 6vh, 72px) 0 0;
        font-size: clamp(22px, 2.3vw, 32px);
        font-weight: 600;
        line-height: 1.18;
        letter-spacing: -.032em;
        text-wrap: balance;
    }

    .article__body-inner p {
        margin: clamp(14px, 2vh, 20px) 0 0;
        line-height: 1.78;
        text-wrap: pretty;
    }

    .article__body-inner blockquote {
        margin: clamp(24px, 3.4vh, 36px) 0;
        padding-left: clamp(20px, 2.6vw, 32px);
        border-left: 2px solid var(--article-accent);
        font-size: clamp(19px, 2vw, 27px);
        font-weight: 500;
        line-height: 1.36;
        letter-spacing: -.026em;
        color: #121214;
        text-wrap: pretty;
    }

.article__source {
    margin: clamp(26px, 3.6vh, 40px) 0 0;
    padding-top: clamp(18px, 2.6vh, 26px);
    border-top: 1px solid rgba(17, 17, 17, .14);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, .5);
}

/* ---------- Recommend box ---------- */

.article__recommend {
    margin: clamp(40px, 6vh, 80px) 0 0;
    border-radius: 28px;
    border: 1px solid rgba(17, 17, 17, .12);
    background: #F2F2F3;
    padding: clamp(28px, 4vw, 56px);
}

.article__recommend-label {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--article-accent);
}

.article__recommend-title {
    color: rgb(23, 23, 26);
    margin: clamp(16px, 2.4vh, 26px) 0 0;
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -.034em;
    max-width: 30ch;
    text-wrap: balance;
}

.article__recommend-body {
    max-width: 70ch;
}

    .article__recommend-body p {
        margin: clamp(18px, 2.6vh, 28px) 0 0;
        font-size: clamp(15px, 1.4vw, 18px);
        line-height: 1.78;
        color: #4A4448;
        text-wrap: pretty;
    }

/* ---------- CTAs ---------- */

.article__ctas {
    margin: clamp(34px, 5vh, 64px) 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 500;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), border-color .3s, background .3s;
    text-decoration: unset;
}

.btn--outline {
    border: 1px solid rgba(17, 17, 17, .24);
    color: #111111;
}

    .btn--outline:hover {
        transform: translateY(-3px);
        border-color: #111111;
        background: rgba(17, 17, 17, .05);
    }

.btn--accent {
    background: var(--article-accent);
    color: #ffffff;
    font-weight: 600;
    border: 0;
}

    .btn--accent:hover {
        transform: translateY(-3px);
        background: #612a47;
        color: #ffffff;
    }

@media (prefers-reduced-motion: reduce) {
    .article__gate::before {
        animation: none;
    }
}

/* ---------- Gate alert banner ---------- */

.article__gate-alert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin: 0;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 999px;
    padding: 11px 22px;
}

.article__gate-alert--success {
    background: rgba(84, 209, 141, .12);
    border: 1px solid rgba(84, 209, 141, .3);
    color: #8fe6b8;
}

    .article__gate-alert--success .article__gate-alert__icon {
        background: rgba(84, 209, 141, .2);
        color: #6be3a3;
    }

.article__gate-alert--error {
    background: rgba(255, 106, 128, .12);
    border: 1px solid rgba(255, 106, 128, .3);
    color: #ffb4c6;
}

    .article__gate-alert--error .article__gate-alert__icon {
        background: rgba(255, 106, 128, .2);
        color: #ff8fa6;
    }

@media (max-width: 640px) {
    .article__gate-form,
    .article__gate-modal-form {
        gap: 12px;
    }

    .article__gate-input,
    .article__gate-modal-input {
        order: 1;
        flex: 1 1 100%;
    }

    .article__gate-input-error {
        order: 2;
    }

    .article__gate-submit {
        order: 3;
    }
}