:root {
    --bg: #0b0f14;
    --bg-soft: #131921;
    --panel: rgba(19, 25, 33, 0.88);
    --panel-strong: #141b24;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f5f1e8;
    --muted: #b5c0ca;
    --accent: #f7b500;
    --accent-2: #19c6ac;
    --danger: #ef6a55;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius: 28px;
    --radius-sm: 18px;
    --shell: min(1180px, calc(100vw - 32px));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans Thai", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(247, 181, 0, 0.18), transparent 32%),
        radial-gradient(circle at top right, rgba(25, 198, 172, 0.16), transparent 28%),
        linear-gradient(180deg, #0b0f14 0%, #111720 100%);
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    width: var(--shell);
    margin: 0 auto;
}

.page-frame {
    position: relative;
}

.page-frame::before,
.page-frame::after {
    content: "";
    position: fixed;
    inset: auto;
    z-index: -1;
    pointer-events: none;
}

.page-frame::before {
    top: 8%;
    right: -6rem;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: rgba(247, 181, 0, 0.08);
    filter: blur(32px);
}

.page-frame::after {
    bottom: 10%;
    left: -7rem;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: rgba(25, 198, 172, 0.08);
    filter: blur(40px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(10, 14, 20, 0.78);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.brand-copy {
    display: grid;
    gap: 4px;
}

.brand-copy strong,
.brand-copy small,
.hero-copy h1,
.section-heading h2,
.feature-card h3,
.card h3,
.legal-shell h1,
.notice-card h1,
.site-footer h3 {
    font-family: "Chakra Petch", sans-serif;
}

.brand-copy strong {
    font-size: 1.1rem;
    line-height: 1.1;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.86rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    color: var(--muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    transform: translateY(-1px);
}

.button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, #ff9047 100%);
    color: #15120d;
    font-weight: 700;
    padding: 14px 22px;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(247, 181, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(247, 181, 0, 0.28);
}

.button--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.button--danger {
    background: linear-gradient(135deg, #ff8c7e 0%, var(--danger) 100%);
    color: #fff;
}

.hero {
    padding: 38px 0 22px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: stretch;
}

.hero-copy,
.hero-visual,
.card,
.feature-card,
.contact-panel,
.map-card,
.legal-shell,
.notice-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: auto -90px -110px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(247, 181, 0, 0.26), rgba(25, 198, 172, 0.12));
    filter: blur(10px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 32px;
    height: 2px;
    background: currentColor;
}

.hero-copy h1 {
    font-size: clamp(2.3rem, 4.6vw, 4.6rem);
    line-height: 0.94;
    margin: 18px 0 16px;
    max-width: 10ch;
}

.hero-copy p {
    color: var(--muted);
    margin: 0;
    max-width: 62ch;
}

.hero-actions,
.chip-list,
.cta-row,
.age-actions,
.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions {
    margin-top: 24px;
}

.chip-list {
    margin-top: 24px;
}

.chip {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
}

.hero-visual {
    overflow: hidden;
    display: grid;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.stat {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

section {
    padding: 22px 0;
}

.section-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 3rem);
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    max-width: 68ch;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card,
.feature-card,
.contact-panel,
.map-card {
    padding: 24px;
}

.card p,
.feature-card p,
.contact-panel p,
.map-card p,
.site-footer p,
.legal-shell p,
.legal-shell li {
    color: var(--muted);
}

.media-card img {
    border-radius: 22px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 18px;
}

.team-banner {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    margin-bottom: 18px;
}

.tag {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 0.82rem;
    color: var(--accent);
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(247, 181, 0, 0.12);
}

.iframe-shell {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #090c10;
    aspect-ratio: 16 / 10;
    margin-top: 18px;
}

.iframe-shell iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.iframe-shell.is-active iframe {
    pointer-events: auto;
}

.iframe-guard {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(11, 15, 20, 0.1), rgba(11, 15, 20, 0.62)),
        radial-gradient(circle at center, rgba(247, 181, 0, 0.08), transparent 55%);
    z-index: 2;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.iframe-shell.is-active .iframe-guard {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.iframe-guard__button {
    max-width: 320px;
    text-align: center;
}

.iframe-guard__button strong {
    display: block;
    margin-bottom: 6px;
}

.iframe-guard__button span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.feature-card ul,
.legal-shell ul,
.notice-card ul {
    padding-left: 20px;
    margin: 16px 0 0;
}

.info-strip {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 22px;
    align-items: start;
}

.contact-stack {
    display: grid;
    gap: 18px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.person-card {
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.person-photo {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    margin-bottom: 14px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.person-card strong {
    display: block;
    margin-bottom: 6px;
}

.role {
    color: var(--accent);
    font-size: 0.88rem;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.contact-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
}

form {
    display: grid;
    gap: 14px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: 0.96rem;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 16px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(247, 181, 0, 0.65);
    background: rgba(255, 255, 255, 0.06);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.flash {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.flash--success {
    background: rgba(25, 198, 172, 0.12);
    border: 1px solid rgba(25, 198, 172, 0.28);
    color: #baf6eb;
}

.flash--error {
    background: rgba(239, 106, 85, 0.12);
    border: 1px solid rgba(239, 106, 85, 0.32);
    color: #ffd2ca;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.map-card iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 22px;
}

.result-box {
    min-height: 126px;
    border-radius: 22px;
    padding: 20px;
    border: 1px dashed rgba(247, 181, 0, 0.36);
    background: linear-gradient(145deg, rgba(247, 181, 0, 0.08), rgba(25, 198, 172, 0.05));
}

.result-box strong {
    display: block;
    margin-bottom: 8px;
}

.site-footer {
    margin-top: 28px;
    border-top: 1px solid var(--line);
    background: rgba(10, 14, 20, 0.88);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 28px 0 38px;
}

.tiny-note {
    font-size: 0.88rem;
}

.footer-link-button {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--muted);
    cursor: pointer;
}

.footer-link-button:hover {
    color: var(--text);
}

.cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: min(560px, calc(100vw - 24px));
    z-index: 35;
}

.cookie-banner__inner {
    background: rgba(15, 20, 27, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.cookie-banner__copy {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.cookie-banner__copy strong {
    font-size: 1.02rem;
}

.cookie-banner__link {
    color: var(--accent);
}

.cookie-banner__inner p {
    margin: 0;
    color: var(--muted);
}

.cookie-banner__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 42;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 15, 0.72);
    backdrop-filter: blur(6px);
}

.cookie-modal__dialog {
    position: relative;
    width: min(680px, calc(100vw - 24px));
    margin: min(8vh, 56px) auto;
    background: rgba(15, 20, 27, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.cookie-modal__header h2 {
    margin: 0;
    font-family: "Chakra Petch", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.cookie-modal__close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    font-size: 1.35rem;
}

.cookie-modal__intro {
    margin: 0 0 18px;
    color: var(--muted);
}

.cookie-modal__list {
    display: grid;
    gap: 12px;
}

.cookie-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-option input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.cookie-option span {
    display: grid;
    gap: 6px;
}

.cookie-option small {
    color: var(--muted);
    line-height: 1.55;
}

.cookie-option--locked {
    border-color: rgba(247, 181, 0, 0.26);
    background: rgba(247, 181, 0, 0.08);
}

.cookie-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.modal-open {
    overflow: hidden;
}

.toast-stack {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 28px));
    z-index: 50;
    display: grid;
    gap: 10px;
}

.toast {
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(15, 20, 27, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    color: var(--text);
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.age-page,
.legal-page,
.notice-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.age-card,
.legal-shell,
.notice-card {
    width: min(760px, calc(100vw - 24px));
    padding: 34px;
}

.age-card {
    background:
        linear-gradient(155deg, rgba(247, 181, 0, 0.14), rgba(255, 255, 255, 0.02)),
        var(--panel);
    border-radius: 34px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.age-card h1,
.notice-card h1,
.legal-shell h1 {
    margin: 14px 0 16px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.95;
}

.age-card p,
.notice-card p {
    color: var(--muted);
}

.age-actions {
    margin-top: 24px;
}

.age-actions .button {
    min-width: 170px;
    padding-block: 16px;
    font-size: 1rem;
}

.legal-links {
    margin-top: 22px;
}

.legal-links a {
    color: var(--muted);
}

.legal-shell {
    max-width: 880px;
}

.legal-shell section + section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.notice-card ul li + li,
.legal-shell ul li + li {
    margin-top: 10px;
}

.center-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 1024px) {
    .hero-grid,
    .grid-2,
    .contact-grid,
    .info-strip,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .grid-3,
    .floating-stats,
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-nav {
        display: none;
    }
}

@media (max-width: 720px) {
    .hero-copy,
    .card,
    .feature-card,
    .contact-panel,
    .map-card,
    .age-card,
    .legal-shell,
    .notice-card {
        padding: 22px;
        border-radius: 24px;
    }

    .field-grid,
    .grid-3,
    .floating-stats,
    .people-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 100%;
    }

    .brand-mark {
        width: 56px;
        height: 56px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        width: auto;
        bottom: 12px;
    }

    .cookie-modal__dialog {
        margin: 24px auto;
        padding: 20px;
        border-radius: 24px;
    }

    .cookie-modal__actions,
    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-modal__actions .button,
    .cookie-banner__actions .button {
        width: 100%;
    }
}
