:root {
  --quartz: #f4fbff;
  --quartz-deep: #e7f3f8;
  --emerald: #1f8f74;
  --emerald-glow: #7ef0c8;
  --violet: #6b5cff;
  --violet-soft: #c9c2ff;
  --cyan: #3ec8e0;
  --silver: #eef4f7;
  --ink: #16303a;
  --muted: #4a6670;
  --glass: rgba(255, 255, 255, 0.62);
  --line: rgba(107, 92, 255, 0.22);
  --shadow: 0 18px 50px rgba(22, 48, 58, 0.12);
  --radius: 22px;
  --font: "IBM Plex Sans Thai", "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(126, 240, 200, 0.45), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(107, 92, 255, 0.22), transparent 55%),
    radial-gradient(700px 400px at 70% 100%, rgba(62, 200, 224, 0.28), transparent 50%),
    linear-gradient(180deg, #f7fcff 0%, #eef6fb 48%, #f3f0ff 100%);
  min-height: 100vh;
  line-height: 1.7;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--emerald); }
a:hover { color: var(--violet); }
.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
h1, h2, h3 { font-family: "Outfit", "IBM Plex Sans Thai", sans-serif; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
p { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(244, 251, 255, 0.9), rgba(244, 251, 255, 0.55));
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.wordmark-mark {
  width: 18px;
  height: 28px;
  background: linear-gradient(160deg, var(--emerald-glow), var(--violet), var(--cyan));
  clip-path: polygon(50% 0, 100% 32%, 72% 100%, 28% 100%, 0 32%);
  box-shadow: 0 0 18px rgba(126, 240, 200, 0.8);
}
.site-nav ul {
  display: flex;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}
.site-nav a[aria-current="page"] { color: var(--violet); }
@media (min-width: 861px) {
  .site-nav[hidden] { display: block !important; }
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
}

.crystal {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.crystal::before {
  content: "";
  position: absolute;
  inset: -40% 40% auto -20%;
  height: 120%;
  background: linear-gradient(120deg, transparent, rgba(126, 240, 200, 0.35), rgba(107, 92, 255, 0.2), transparent);
  transform: rotate(18deg);
  pointer-events: none;
}

.hero-editorial { padding: 28px 0 12px; }
.hero-kicker {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 18px 0 0;
}
.hero-top {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.hero-frame {
  flex: 1;
  border-radius: 28px;
  overflow: hidden;
  min-height: 280px;
  position: relative;
  box-shadow: var(--shadow);
}
.hero-frame img { width: 100%; height: 420px; object-fit: cover; }
.hero-caption {
  margin-top: -72px;
  position: relative;
  padding: 28px 32px 32px;
}
.hero-caption p { color: var(--muted); max-width: 62ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  color: #07312b;
  background: linear-gradient(180deg, #d9fff3, #7ef0c8 45%, #67d8e8);
  box-shadow: 0 8px 24px rgba(31, 143, 116, 0.28);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: skewX(-20deg);
  animation: pulse 2.4s ease-in-out infinite;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.4);
  border-color: var(--line);
  color: var(--ink);
}
@keyframes pulse {
  0% { left: -40%; opacity: 0; }
  30% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

.section { padding: 56px 0; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 68ch; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.card img { height: 180px; width: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; position: relative; z-index: 1; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.meta { color: var(--muted); font-size: 0.92rem; }

.quote {
  padding: 24px 26px;
  font-size: 1.05rem;
}
.quote footer { margin-top: 12px; color: var(--muted); font-size: 0.92rem; }

.page-hero { padding: 40px 0 10px; }
.page-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 28px;
  margin-top: 16px;
}
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.stack { display: grid; gap: 18px; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass);
  border-radius: 18px;
  overflow: hidden;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.portrait {
  border-radius: 20px;
  overflow: hidden;
}
.portrait img { height: 260px; width: 100%; object-fit: cover; }
.portrait .card-body { padding: 14px 16px 18px; }

.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; }
input, textarea, select {
  font: inherit;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}
.field-error { color: #9b1c4a; font-weight: 500; min-height: 1.2em; font-size: 0.9rem; }
.form-status { margin: 8px 0 0; font-weight: 600; }
.form-status.is-ok { color: var(--emerald); }

.site-footer {
  margin-top: 40px;
  padding: 40px 0 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(201, 194, 255, 0.18));
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px; }
.footer-brand { font-weight: 700; font-size: 1.1rem; }
.footer-label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-copy { color: var(--muted); font-size: 0.9rem; }

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 40;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(244, 251, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.cookie-actions { display: flex; gap: 10px; margin-top: 10px; }

.not-found { padding: 80px 0; text-align: center; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav[hidden] { display: none !important; }
  .site-nav:not([hidden]) { display: block; width: 100%; }
  .hero-kicker { display: none; }
  .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .hero-frame img { height: 240px; }
}
