/* ═══════════════════════════════════════════════════════════════
   BASE — Reset · Typography · Global
   Clean Minimalist Theme
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600&display=swap');

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ced4da #f8f9fa;
}
html::-webkit-scrollbar       { width: 6px; }
html::-webkit-scrollbar-track { background: #f8f9fa; }
html::-webkit-scrollbar-thumb { background: #ced4da; border-radius: var(--r-full); }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-base);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Selection ────────────────────────────────────────────────── */
::selection {
    background: rgba(74, 144, 217, 0.15);
    color: var(--text-primary);
}

/* ── Focus ────────────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

/* ── Typography Scale ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.text-display {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.0;
}
.text-hero     { font-size: clamp(2.2rem, 5vw, 4.5rem); font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.text-title    { font-size: clamp(1.5rem, 3vw, 2.4rem); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.text-subtitle { font-size: clamp(1rem, 2vw, 1.3rem);   font-family: var(--font-ui); font-weight: 400; }
.text-label    { font-size: 0.75rem; font-family: var(--font-ui); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.text-mono     { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 400; }
.text-thai     { font-family: var(--font-thai); }

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--dur-sm) ease;
}
a:hover { color: var(--gold-deep); }

p { color: var(--text-secondary); line-height: 1.75; }

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

button { font-family: inherit; cursor: pointer; }

/* ── Grid Overlay Texture (disabled — kept for class compat) ─── */
.grid-texture {
    display: none;
}

/* ── Noise Grain (disabled — kept for class compat) ──────────── */
.grain {
    display: none;
}

/* ── Utility ──────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-select { user-select: none; }
.pointer-none { pointer-events: none; }

.c-gold    { color: var(--text-gold); }
.c-crimson { color: var(--text-crimson); }
.c-teal    { color: var(--text-teal); }
.c-muted   { color: var(--text-muted); }

.container {
    width: 100%;
    max-width: var(--w-xl);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
}

.section { padding: clamp(60px, 10vw, 120px) 0; }

.divider {
    width: 100%;
    height: 1px;
    background: var(--border-subtle);
    margin: var(--r-xl) 0;
}

/* ── Reveal Animation Base ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--dur-lg) ease, transform var(--dur-lg) ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.page-title {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 1.05rem;
    letter-spacing: .06em;
    color: #000000;
}

.dash-main-topbar {
    background: #ffffff;
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: var(--z-raised);
    height: var(--nav-h);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}