/* ==========================================================================
   GEMWISP — Homepage Hero (V6.3)
   Text is real HTML laid over a text-free artwork. No copy is baked into the
   image, so the background never has to be regenerated when wording changes.
   Background: #101513 · Accent: #c9a86a · Ink: #f6f1e6
   ========================================================================== */

.gw-hero {
    --gw-ink: 11, 15, 13;
    --gw-bg: #101513;
    --gw-gold: #c9a86a;
    --gw-cream: #f6f1e6;
    --gw-scrim: .78;
    --gw-hero-h: 100svh;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    /* V6.7：真·全屏。原来是 clamp(520px, 88vh, 940px)，上限 940px 会把
       1080p 屏幕的 Hero 压到 940——首屏下方必然露出一截页面底色。
       现在只保留下限（极矮窗口不至于把文案挤没），高度由视口决定。 */
    min-height: 560px;
    min-height: max(560px, var(--gw-hero-h));
    background: var(--gw-bg);
    color: var(--gw-cream);
    overflow: hidden;
}

/* --- artwork layer ------------------------------------------------------- */
.gw-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gw-hero__media picture,
.gw-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.gw-hero__media img {
    object-fit: cover;
    object-position: 72% 42%;
}

/* --- scrim: keeps the left column legible, fades the base into the page --- */
.gw-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(96deg,
            rgba(var(--gw-ink), calc(var(--gw-scrim) * .98)) 0%,
            rgba(var(--gw-ink), calc(var(--gw-scrim) * .94)) 20%,
            rgba(var(--gw-ink), calc(var(--gw-scrim) * .74)) 36%,
            rgba(var(--gw-ink), calc(var(--gw-scrim) * .40)) 50%,
            rgba(var(--gw-ink), calc(var(--gw-scrim) * .12)) 62%,
            rgba(var(--gw-ink), 0) 72%),
        linear-gradient(180deg,
            rgba(var(--gw-ink), calc(var(--gw-scrim) * .72)) 0%,
            rgba(var(--gw-ink), calc(var(--gw-scrim) * .18)) 14%,
            rgba(var(--gw-ink), 0) 30%),
        linear-gradient(0deg,
            var(--gw-bg) 0%,
            rgba(16, 21, 19, .97) 2%,
            rgba(16, 21, 19, .88) 6%,
            rgba(16, 21, 19, .62) 12%,
            rgba(16, 21, 19, .3) 19%,
            rgba(16, 21, 19, .08) 25%,
            rgba(16, 21, 19, 0) 30%);
}

/* --- copy ---------------------------------------------------------------- */
.gw-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.5rem, 5.5vw, 4.5rem);
}

.gw-hero__copy {
    max-width: min(36rem, 46vw);
}

.gw-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 clamp(1rem, 2vw, 1.6rem);
    font: 10px/1.5 Arial, Helvetica, sans-serif;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: #cfb27c;
}

.gw-hero__eyebrow > span {
    display: block;
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: .8;
    flex: 0 0 auto;
}

.gw-hero__title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(2.35rem, 4.35vw, 4.15rem);
    line-height: 1.04;
    letter-spacing: -.015em;
    text-wrap: balance;
    color: #fbf6ec;
}

.gw-hero__sub {
    margin: clamp(1rem, 1.8vw, 1.4rem) 0 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.05rem, 1.35vw, 1.3rem);
    line-height: 1.5;
    color: #e9e0cb;
}

.gw-hero__desc {
    margin: clamp(.9rem, 1.6vw, 1.15rem) 0 0;
    max-width: 33rem;
    font: 15px/1.85 Arial, Helvetica, sans-serif;
    color: rgba(246, 241, 230, .76);
}

.gw-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(1.6rem, 2.6vw, 2.1rem);
}

.gw-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    font: 11.5px/1 Arial, Helvetica, sans-serif;
    letter-spacing: .16em;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.gw-hero__btn--primary {
    background: var(--gw-gold);
    color: #14100b;
    border-color: var(--gw-gold);
}

.gw-hero__btn--primary:hover,
.gw-hero__btn--primary:focus-visible {
    background: #dcbd85;
    border-color: #dcbd85;
}

.gw-hero__btn--ghost {
    color: var(--gw-cream);
    border-color: rgba(246, 241, 230, .42);
    background: rgba(16, 21, 19, .28);
}

.gw-hero__btn--ghost:hover,
.gw-hero__btn--ghost:focus-visible {
    background: rgba(246, 241, 230, .1);
    border-color: rgba(246, 241, 230, .72);
}

.gw-hero__btn:focus-visible {
    outline: 2px solid #e2c98f;
    outline-offset: 4px;
}

/* --- three steps --------------------------------------------------------- */
.gw-hero__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: clamp(2rem, 3.4vw, 2.8rem) 0 0;
    padding: clamp(1rem, 1.6vw, 1.2rem) 0 0;
    list-style: none;
    border-top: 1px solid rgba(246, 241, 230, .16);
    max-width: 34rem;
}

.gw-hero__steps li {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font: 10.5px/1.5 Arial, Helvetica, sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgba(246, 241, 230, .74);
}

.gw-hero__steps li > span {
    font-size: 9px;
    letter-spacing: .22em;
    color: var(--gw-gold);
}

/* --- centred variant ----------------------------------------------------- */
.gw-hero[data-align="center"] .gw-hero__inner {
    display: grid;
    place-items: center;
}

.gw-hero[data-align="center"] .gw-hero__copy {
    max-width: min(44rem, 78vw);
    text-align: center;
}

.gw-hero[data-align="center"] .gw-hero__eyebrow,
.gw-hero[data-align="center"] .gw-hero__actions {
    justify-content: center;
}

.gw-hero[data-align="center"] .gw-hero__desc {
    margin-left: auto;
    margin-right: auto;
}

.gw-hero[data-align="center"] .gw-hero__steps {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.gw-hero[data-align="center"] .gw-hero__scrim {
    background:
        radial-gradient(120% 90% at 50% 55%, rgba(var(--gw-ink), calc(var(--gw-scrim) * .82)) 0%, rgba(var(--gw-ink), calc(var(--gw-scrim) * .5)) 55%, rgba(var(--gw-ink), 0) 100%),
        linear-gradient(0deg, var(--gw-bg) 0%, rgba(16, 21, 19, 0) 18%);
}

/* ==========================================================================
   V6.7 — Tablet & mobile: the artwork becomes the whole screen and the copy
   is laid over its lower part. There is no separate dark band under the image.
   A bottom-only gradient keeps text legible without dimming the figure.
   ========================================================================== */
@media (max-width: 1024px) {
    .gw-hero {
        display: block;
        min-height: 100svh;
        padding: 0;
    }

    .gw-hero__media {
        position: absolute;
        inset: 0;
        height: auto;
        overflow: hidden;
        background: #0b0f0d;
    }

    /* 竖版海报按高度铺满、横向居中裁切；面部、月亮、首饰都在中轴附近，不会被切掉 */
    .gw-hero__media img {
        object-position: 50% 40%;
    }

    .gw-hero__media::after {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: 62%;
        background: linear-gradient(180deg,
            rgba(16, 21, 19, 0) 0%,
            rgba(16, 21, 19, .22) 30%,
            rgba(16, 21, 19, .54) 55%,
            rgba(16, 21, 19, .82) 76%,
            rgba(16, 21, 19, .95) 100%);
        pointer-events: none;
    }

    .gw-hero__scrim {
        display: none;
    }

    .gw-hero__inner {
        position: absolute;
        inset: auto 0 0 0;
        padding: 0 clamp(1.25rem, 5vw, 3rem) calc(22px + env(safe-area-inset-bottom));
    }

    .gw-hero__copy,
    .gw-hero[data-align="center"] .gw-hero__copy {
        max-width: 34rem;
        text-align: left;
    }

    .gw-hero[data-align="center"] .gw-hero__eyebrow,
    .gw-hero[data-align="center"] .gw-hero__actions {
        justify-content: flex-start;
    }

    .gw-hero__title {
        font-size: clamp(2rem, 5.2vw, 2.9rem);
    }

    .gw-hero__desc {
        max-width: 32rem;
        font-size: 14px;
        line-height: 1.7;
    }

    /* 三步引导在平板上会把文案区顶得过高，压到人物手部 */
    .gw-hero__steps {
        display: none;
    }
}

@media (max-width: 767px) {
    .gw-hero__media img {
        object-position: 50% 42%;
    }

    .gw-hero__inner {
        padding: 0 1.15rem calc(18px + env(safe-area-inset-bottom));
    }

    .gw-hero__copy,
    .gw-hero[data-align="center"] .gw-hero__copy {
        max-width: none;
        text-align: center;
    }

    .gw-hero__eyebrow {
        justify-content: center;
        font-size: 8.5px;
        letter-spacing: .22em;
        gap: 10px;
        margin-bottom: .7rem;
    }

    .gw-hero__eyebrow > span {
        width: 20px;
    }

    .gw-hero__title {
        font-size: clamp(1.85rem, 7.8vw, 2.45rem);
        line-height: 1.05;
    }

    .gw-hero__sub {
        margin-top: .55rem;
        font-size: 1rem;
    }

    .gw-hero__desc {
        margin: .55rem auto 0;
        max-width: 24em;
        font-size: 12.5px;
        line-height: 1.6;
    }

    .gw-hero__actions {
        justify-content: center;
        gap: 8px;
        margin-top: .9rem;
    }

    /* 两个按钮并排；各占一行会把文案顶高到人物手部 */
    .gw-hero__btn {
        flex: 1 1 0;
        min-height: 46px;
        padding: 0 12px;
        font-size: 10.5px;
        letter-spacing: .1em;
        white-space: nowrap;
    }

    .gw-hero__scroll {
        display: none;
    }
}

@media (max-width: 380px) {
    .gw-hero__title {
        font-size: 1.7rem;
    }

    /* 360 宽时首屏太矮，描述会把标题顶到人物脸上 */
    .gw-hero__desc {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gw-hero__btn {
        transition: none;
    }
}

/* ==========================================================================
   V6.8 — 海报只留文案，不再有两个按钮
   --------------------------------------------------------------------------
   品牌方要求首页海报更简洁，DRAW YOUR MYTH / EXPLORE THE 21 MYTHS 两个按钮
   连同容器一并移除（抽卡入口仍在下面的 The Mythic Draw 与导航）。
   按钮原本承担“把视线往下带”的作用，删掉后靠三步说明与底部滚动提示补齐节奏，
   文案块仍然垂直居中，标题不会掉到人物面部或首饰上。
   ========================================================================== */

/* 说明段落与三步之间补回间距：原来的间距由按钮块承担，现在没有按钮了 */
.gw-hero__actions + .gw-hero__steps,
.gw-hero__desc + .gw-hero__steps {
    margin-top: clamp(1.5rem, 2.4vw, 2.2rem);
}

/* 没有按钮时，文案块整体上移一点点，视觉重心回到标题 */
.gw-hero__copy {
    padding-bottom: clamp(0px, .6vw, 10px);
}

@media (max-width: 767px) {
    /* 手机上标题与副标题之间的呼吸留白略增，替代按钮消失后空出的那一段 */
    .gw-hero__sub {
        margin-top: clamp(1.15rem, 3vw, 1.5rem);
    }
    .gw-hero__steps {
        margin-top: 1.6rem;
    }
}
