:root {
  color-scheme: light;
  --ink: #081a33;
  --ink-soft: #233852;
  --paper: #f7f8fb;
  --white: #ffffff;
  --gold: #d7a74e;
  --gold-deep: #aa7920;
  --line: #dce2ea;
  --muted: #64748b;
  --success: #178a5b;
  --shadow: 0 24px 70px rgba(8, 26, 51, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans Thai", "Thonburi", "Tahoma", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

a { color: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 10; background: var(--white); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 248, 251, 0.92);
  border-bottom: 1px solid rgba(8, 26, 51, 0.1);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.25; }
.brand strong { display: block; font-size: 0.96rem; }
.brand small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 3px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--ink);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}
nav { display: flex; gap: 24px; }
nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; font-weight: 700; }
nav a:hover, nav a:focus-visible { color: var(--gold-deep); }

.hero {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 26, 51, 0.98), rgba(16, 49, 84, 0.94)),
    radial-gradient(circle at 80% 20%, rgba(215, 167, 78, 0.32), transparent 40%);
  color: var(--white);
  padding: 92px 0;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: 72px; align-items: center; }
.eyebrow, .section-kicker { margin: 0 0 16px; color: var(--gold); font-size: 0.78rem; letter-spacing: 0.18em; font-weight: 800; }
h1, h2 { margin: 0; line-height: 1.2; letter-spacing: -0.025em; }
h1 { max-width: 720px; font-size: clamp(2.45rem, 6vw, 5.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.lead { max-width: 650px; margin: 24px 0 0; color: #d8e2ef; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--gold); color: var(--ink); }
.button.primary:hover, .button.primary:focus-visible { background: #e3bb70; }
.button.secondary { border-color: rgba(255, 255, 255, 0.32); color: var(--white); background: rgba(255, 255, 255, 0.07); }

.identity-panel { position: relative; padding: 28px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 18px; background: rgba(255, 255, 255, 0.08); box-shadow: var(--shadow); }
.identity-panel::before { content: ""; position: absolute; width: 90px; height: 4px; right: 28px; top: 0; background: var(--gold); }
.identity-monogram { color: var(--gold); font-family: Georgia, serif; font-size: 2.8rem; font-weight: 700; letter-spacing: 0.08em; }
dl { margin: 24px 0 0; }
dl div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.15); }
dt { color: #aebfd2; font-size: 0.8rem; }
dd { margin: 0; font-weight: 700; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #4bd49a; box-shadow: 0 0 0 4px rgba(75, 212, 154, 0.14); }

.section { padding: 82px 0; border-bottom: 1px solid var(--line); }
.section-grid { display: grid; grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr); gap: 72px; }
.section-kicker { color: var(--gold-deep); }
.prose { max-width: 730px; font-size: 1.05rem; color: var(--ink-soft); }
.prose p:first-child { margin-top: 0; }
.prose p:last-child { margin-bottom: 0; }
.english-section { background: var(--white); }

.contact-section { background: var(--ink); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr); gap: 80px; align-items: start; }
.contact-intro { color: #b9c6d6; max-width: 520px; }
.contact-form { display: grid; gap: 18px; padding: 28px; border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
label { display: grid; gap: 7px; font-size: 0.9rem; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 9px; padding: 12px 13px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
input:focus, textarea:focus { outline: 3px solid rgba(215, 167, 78, 0.3); border-color: var(--gold-deep); }
textarea { resize: vertical; }
.form-note { margin: 0; color: var(--muted); font-size: 0.84rem; }
.privacy-section { background: #eef2f7; }

footer { background: #051326; color: #aebfd2; padding: 28px 0; font-size: 0.86rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0; }

@media (max-width: 800px) {
  .header-inner { min-height: 68px; }
  nav { display: none; }
  .hero { padding: 68px 0; }
  .hero-grid, .section-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 60px 0; }
  .identity-panel { padding: 22px; }
  .contact-form { padding: 22px; }
  .footer-inner { flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
  .shell { width: min(100% - 28px, 1120px); }
  .brand strong { font-size: 0.84rem; }
  .brand small { font-size: 0.72rem; }
  .brand-mark { width: 38px; border-radius: 10px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
