:root {
  --quartz: #eef3f8;
  --ice: rgba(255, 255, 255, 0.55);
  --ink: #152033;
  --muted: #4a5870;
  --emerald: #12a57a;
  --violet: #6a56f0;
  --cyan: #3ad2e0;
  --silver: #d5deea;
  --line: rgba(106, 86, 240, 0.28);
  --shadow: 0 22px 40px rgba(21, 32, 51, 0.14);
  --font: "Noto Sans Thai", sans-serif;
  --display: "Noto Serif Thai", "Noto Sans Thai", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.75;
  background:
    linear-gradient(115deg, rgba(58, 210, 224, 0.2) 0%, transparent 32%),
    linear-gradient(250deg, rgba(106, 86, 240, 0.18) 0%, transparent 40%),
    linear-gradient(180deg, rgba(18, 165, 122, 0.12), transparent 30%),
    var(--quartz);
  min-height: 100vh;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.14) 0 14px, transparent 14px 28px);
  mix-blend-mode: overlay;
  opacity: 0.35;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; height: auto; }
a { color: #2450a8; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
.wrap { width: min(1080px, calc(100% - 28px)); margin-inline: auto; }
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(238, 243, 248, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-stack { display: grid; line-height: 1.2; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.brand-place { font-size: 0.78rem; color: var(--muted); }
.brand-mark {
  width: 22px;
  height: 34px;
  clip-path: polygon(50% 0, 100% 28%, 78% 100%, 22% 100%, 0 28%);
  background: linear-gradient(165deg, var(--cyan), var(--violet) 50%, var(--emerald));
  box-shadow: 0 0 18px rgba(58, 210, 224, 0.55);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--ice);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  padding: 8px 16px;
  font: inherit;
}
.site-nav { display: flex; gap: 20px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.site-nav a:hover { color: var(--violet); }

.facet {
  background:
    linear-gradient(165deg, rgba(255,255,255,0.78), rgba(255,255,255,0.32));
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.9);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  position: relative;
  overflow: hidden;
}
.facet::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 70%;
  background: linear-gradient(120deg, transparent, rgba(58,210,224,0.22), rgba(106,86,240,0.2));
  transform: rotate(-12deg);
  pointer-events: none;
}

.pathline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 28px 0 8px;
  margin: 0;
}
.pathline li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.pathline span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--violet));
  clip-path: polygon(50% 0, 100% 28%, 82% 100%, 18% 100%, 0 28%);
  font-size: 0.8rem;
}

.mast {
  margin: 8px 0 0;
  position: relative;
}
.mast img {
  width: 100%;
  height: 58vh;
  min-height: 320px;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.mast figcaption,
.mast-inline figcaption {
  width: min(1080px, calc(100% - 28px));
  margin: -48px auto 0;
  position: relative;
  background: rgba(238, 243, 248, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  padding: 12px 16px;
  font-size: 0.92rem;
}
.mast-inline { margin: 0 auto 24px; }
.mast-inline img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 94%);
}

.caption-hero {
  padding: 36px 0 10px;
  max-width: 42rem;
  margin-left: min(1080px, calc(100% - 28px));
  margin-right: auto;
  margin-left: auto;
}
.caption-hero h1 { margin-bottom: 16px; }
.lede { font-size: 1.08rem; color: var(--muted); }
.single-cta { margin-top: 20px; }
.text-cta {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
}
.text-cta:hover { color: var(--violet); }

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1f6f62;
  margin-bottom: 8px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0 0 12px; }
h1 { font-size: clamp(1.85rem, 3.6vw, 3rem); font-weight: 700; }
h2 { font-size: 1.55rem; }

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--cyan) 42%, var(--violet));
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.btn:hover { color: #fff; }
.btn-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: translateX(-120%);
}
.btn-pulse:hover::after,
.btn-pulse:focus-visible::after {
  animation: crystal-pulse 0.9s ease;
}
@keyframes crystal-pulse {
  from { transform: translateX(-120%); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  clip-path: none;
  border-radius: 0;
}
.btn-ghost:hover { color: var(--ink); }

.section { padding: 40px 0; }
.primary-offer {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 22px;
  align-items: center;
}
.primary-offer img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
.offer-grid, .card-grid, .team-grid, .folio-grid, .lab-steps {
  display: grid;
  gap: 16px;
}
.offer-grid { grid-template-columns: repeat(2, 1fr); }
.card-grid { grid-template-columns: repeat(2, 1fr); }
.team-grid { grid-template-columns: repeat(3, 1fr); }
.folio-grid { grid-template-columns: repeat(2, 1fr); }
.lab-steps { grid-template-columns: repeat(3, 1fr); }
.card, .quote, .legal, .form-card, .cta-band { padding: 22px; }
.card img { width: 100%; height: 176px; object-fit: cover; margin-bottom: 12px; }
.price { color: #1d6b5c; font-weight: 700; }
.quote { font-size: 1.08rem; }
.quote cite { display: block; margin-top: 12px; color: var(--muted); font-style: normal; }

.page-hero { padding: 44px 0 8px; }
.page-hero p { max-width: 44rem; color: var(--muted); }

form { display: grid; gap: 14px; }
label { font-weight: 600; display: grid; gap: 6px; }
input, textarea, select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--silver);
  background: rgba(255,255,255,0.82);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.field-error { color: #9b2740; font-size: 0.9rem; min-height: 1.2em; }
.form-status { margin-top: 8px; font-weight: 700; }
.form-status.is-ok { color: #1aa37a; }
.form-status.is-bad { color: #9b2740; }
.island-error { color: #9b2740; }

.prose { max-width: 46rem; }
.prose p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.legal { padding: 28px; max-width: none; }

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.32);
  padding: 36px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.footer-brand { font-family: var(--display); font-weight: 700; }
.footer-label { font-weight: 700; margin-bottom: 6px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-copy { margin-top: 22px; color: var(--muted); font-size: 0.92rem; }

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: auto;
  z-index: 30;
  max-width: 420px;
  background: rgba(238, 243, 248, 0.95);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  backdrop-filter: blur(14px);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.cookie-actions { display: flex; gap: 10px; margin-top: 10px; }

.error-page { padding: 88px 0; max-width: 36rem; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-header { position: relative; }
  .site-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 20px 22px;
    background: rgba(238, 243, 248, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .pathline,
  .primary-offer,
  .offer-grid,
  .card-grid,
  .team-grid,
  .folio-grid,
  .lab-steps,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .mast img { height: 280px; clip-path: none; }
  .cookie-banner { left: 16px; right: 16px; max-width: none; }
}
