/* ===== พื้นฐาน ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    font-family: "Noto Serif Thai", serif;
    color: #fff;
    background: #000;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== พื้นหลัง ===== */
.landing {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url("assets/QueenSirikit.jpg") center/cover no-repeat fixed;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    isolation: isolate;
}

/* ===== ขอบมืดนุ่มพอดี ===== */
.landing::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%,
            rgba(0, 0, 0, 0) 55%,
            rgba(0, 0, 0, 0.45) 75%,
            rgba(0, 0, 0, 0.75) 100%);
    mix-blend-mode: multiply;
    z-index: 0;
    pointer-events: none;
}
/* ===== เพิ่มแสงกลางให้สว่างขึ้นเล็กน้อย ===== */
.landing::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 45%,
            /* จุดศูนย์กลางแสง */
            rgba(255, 255, 255, 0.18) 0%,
            /* กลางสว่างขึ้น */
            rgba(255, 255, 255, 0.10) 20%,
            /* ขอบแสงนุ่ม */
            rgba(255, 255, 255, 0.00) 50%
            /* ขอบละลายหาย */
        );
    mix-blend-mode: screen;
    /* ผสมให้สว่างแบบเนียน */
    opacity: .4;
    /* ปรับความเข้มโดยรวม */
}

/* ===== ข้อความ ===== */
.caption {
    overflow: visible;
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin-bottom: 2.5rem;
}

.subtitle {
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 600;
    margin-bottom: .4rem;
    color: #f0f0ed;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.lead {
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 400;
    opacity: .95;
    margin-bottom: .8rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.royal {
    font-weight: 700;
    /* ให้ยืดหยุ่นและย่อเองเมื่อจอแคบ (แต่ยังบรรทัดเดียว) */
    font-size: clamp(20px, 2.6vw, 32px);
    line-height: 1.28;
    /* เผื่อยอด-หางของอักษรไทย */
    white-space: nowrap;
    /* บรรทัดเดียว */
    /* ⚠️ เอาที่ทำให้ตัดออก */
    overflow: visible;
    /* เดิมเป็น hidden → ทำให้สระหาย */
    text-overflow: clip;
    /* ไม่ต้อง ellipse */
    /* เผื่อพื้นที่เล็กน้อยป้องกัน Safari ตัดยอด */
    padding-top: 0.12em;
    padding-bottom: 0.05em;

    background: linear-gradient(180deg, #fff, #e6e0d1 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
    max-width: 92vw;
    /* กันล้นกรอบ viewport */
}

.divider {
    width: 120px;
    height: 2px;
    margin: 0 auto 1rem;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
}

.credit {
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.65;
    opacity: .95;
    color: #f2eee7;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

/* ===== ปุ่ม ===== */
.btn {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 10px 26px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(14px, 1.8vw, 16px);
    background: rgba(0, 0, 0, .25);
    transition: all .3s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media(max-width:1024px) {
    .landing {
        background-attachment: scroll;
        padding: 2rem 1rem;
    }

    .caption {
        margin-bottom: 10vh;
        /* ขยับลงเล็กน้อย */
    }
}

@media(max-width:520px) {
    .royal {
        white-space: normal;
        font-size: clamp(18px, 5vw, 22px);
        line-height: 1.35;
        padding-top: 0.08em;
    }

    .caption {
        margin-bottom: 1.2vh;
        /* มือถือ ขยับลงอีก */
    }
}