:root {
  --quartz: #f3f6fb;
  --quartz-deep: #e4ebf4;
  --ice: rgba(255, 255, 255, 0.62);
  --ink: #1c2433;
  --muted: #4d5a6d;
  --emerald: #1aa37a;
  --violet: #6d5cff;
  --cyan: #3ec8d8;
  --silver: #c9d3e0;
  --line: rgba(109, 92, 255, 0.22);
  --shadow: 0 18px 50px rgba(28, 36, 51, 0.12);
  --radius: 22px;
  --font: "IBM Plex Sans Thai", "Sora", sans-serif;
  --display: "Sora", "IBM Plex Sans Thai", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(62, 200, 216, 0.28), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(109, 92, 255, 0.22), transparent 50%),
    radial-gradient(700px 380px at 70% 100%, rgba(26, 163, 122, 0.16), transparent 50%),
    linear-gradient(180deg, #eef3f8 0%, var(--quartz) 40%, #f7f9fc 100%);
  min-height: 100vh;
}
img { max-width: 100%; display: block; height: auto; }
a { color: #2b4ea3; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(243, 246, 251, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 18px;
  height: 28px;
  clip-path: polygon(50% 0, 100% 32%, 82% 100%, 18% 100%, 0 32%);
  background: linear-gradient(160deg, var(--cyan), var(--violet) 55%, var(--emerald));
  box-shadow: 0 0 16px rgba(62, 200, 216, 0.55);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--ice);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
}
.site-nav { display: flex; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--violet); }

.crystal {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.38));
  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% -10% auto auto;
  height: 80%;
  width: 55%;
  background: linear-gradient(120deg, transparent, rgba(62,200,216,0.18), rgba(109,92,255,0.16));
  transform: rotate(18deg);
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: end;
  padding: 56px 0 28px;
}
.hero-figure {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-figure img { width: 100%; height: 520px; object-fit: cover; }
.hero-figure figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  background: rgba(243,246,251,0.86);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
}
.place-chip {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2d6f63;
  margin-bottom: 10px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4vw, 3.35rem); font-weight: 700; }
h2 { font-size: 1.7rem; }
.lede { font-size: 1.12rem; color: var(--muted); }
.single-cta { margin-top: 22px; }

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--cyan) 45%, 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.65), transparent);
  transform: translateX(-120%);
}
.btn-pulse:hover::after,
.btn-pulse:focus-visible::after {
  animation: crystal-pulse 0.85s 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);
}
.btn-ghost:hover { color: var(--ink); }

.section { padding: 42px 0; }
.primary {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 28px;
}
.primary img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; border-radius: 16px; }
.offer-grid, .card-grid, .team-grid, .folio-grid {
  display: grid;
  gap: 18px;
}
.offer-grid { grid-template-columns: repeat(2, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.team-grid { grid-template-columns: repeat(3, 1fr); }
.folio-grid { grid-template-columns: repeat(2, 1fr); }
.card, .quote, .legal, .form-card {
  padding: 20px;
}
.card img, .folio img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; }
.price { color: #246b5c; font-weight: 600; }
.quote { font-size: 1.05rem; }
.quote cite { display: block; margin-top: 12px; color: var(--muted); font-style: normal; }

.page-hero { padding: 48px 0 10px; }
.page-hero p { max-width: 46rem; 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-radius: 12px;
  border: 1px solid var(--silver);
  background: rgba(255,255,255,0.8);
}
.field-error { color: #9b2740; font-size: 0.9rem; min-height: 1.2em; }
.form-status { margin-top: 8px; font-weight: 600; }
.island-error { color: #9b2740; }

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

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.35);
  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;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: 720px;
  margin-inline: auto;
  background: rgba(243,246,251,0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 16px 18px;
  backdrop-filter: blur(14px);
}
.cookie-actions { display: flex; gap: 10px; margin-top: 10px; }

.error-page { padding: 80px 0; text-align: center; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 20px 22px;
    background: rgba(243,246,251,0.96);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .hero, .primary, .offer-grid, .card-grid, .team-grid, .folio-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-figure img { height: 300px; }
}
