:root {
  --quartz: #f4f7fb;
  --quartz-deep: #e4eef8;
  --ink: #1b2433;
  --ink-soft: #3d4a5c;
  --emerald: #1f8a6a;
  --emerald-glow: #34d399;
  --violet: #6d4ad4;
  --violet-soft: #c4b5fd;
  --cyan: #22d3ee;
  --silver: #f8fbff;
  --line: rgba(109, 74, 212, 0.18);
  --shadow: 0 18px 50px rgba(49, 36, 92, 0.12);
  --radius: 1.35rem;
  --font: "Noto Sans Thai", "Sora", 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(ellipse at 12% -10%, rgba(196, 181, 253, 0.55), transparent 42%),
    radial-gradient(ellipse at 90% 8%, rgba(34, 211, 238, 0.32), transparent 38%),
    radial-gradient(ellipse at 40% 100%, rgba(52, 211, 153, 0.22), transparent 46%),
    linear-gradient(180deg, #eef3fb 0%, #f7f9fd 40%, #e8f6f4 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.18) 45%, transparent 70%);
  mix-blend-mode: screen;
  animation: aurora-shift 16s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes aurora-shift {
  from { opacity: 0.35; transform: translateX(-4%); }
  to { opacity: 0.7; transform: translateX(4%); }
}

main, .site-header, .site-footer, .cookie-banner { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--violet); }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: -40rem;
  background: var(--silver);
  padding: 0.5rem 1rem;
}
.skip:focus { top: 0.5rem; }

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(244, 247, 251, 0.72);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.brand-mark {
  width: 1.35rem;
  height: 1.7rem;
  clip-path: polygon(50% 0, 100% 32%, 82% 100%, 18% 100%, 0 32%);
  background: linear-gradient(160deg, var(--violet-soft), var(--cyan), var(--emerald-glow));
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font: inherit;
}

.site-nav ul {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

.site-nav a[aria-current="page"] { color: var(--emerald); }

.crystal {
  background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(255,255,255,0.28) 55%, rgba(196, 181, 253, 0.16));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  min-height: 72vh;
}

.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 28rem; }
.hero-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: 28rem;
  background: rgba(27, 36, 51, 0.55);
  color: var(--silver);
  padding: 0.7rem 0.9rem;
  border-radius: 0.8rem;
  font-size: 0.92rem;
}

.hero-copy {
  margin: 2.5rem 2rem 2.5rem -1.5rem;
  padding: 2rem 2.1rem;
  align-self: center;
}

.kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--emerald);
  font-weight: 700;
}

h1, h2, h3 { line-height: 1.25; font-family: "Sora", "Noto Sans Thai", sans-serif; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-top: 0.2rem; }
h2 { font-size: 1.45rem; }

.hero-note { color: var(--ink-soft); font-size: 0.95rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  color: #f8fbff;
  background: linear-gradient(120deg, var(--violet), var(--emerald));
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: translateX(-120%);
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  animation: crystal-pulse 0.9s ease;
}

@keyframes crystal-pulse {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.btn-ghost {
  background: rgba(255,255,255,0.45);
  color: var(--ink);
  border: 1px solid var(--line);
}

.section { padding: 3.2rem 0; }
.section-head { margin-bottom: 1.4rem; }

.featured-service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.featured-service img { height: 100%; object-fit: cover; min-height: 16rem; }
.featured-service div { padding: 1.6rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.card {
  background: linear-gradient(160deg, rgba(255,255,255,0.8), rgba(232, 246, 244, 0.55));
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin: 0.4rem 1.1rem 0.2rem; font-size: 1.15rem; }
.card p { margin: 0.35rem 1.1rem 1rem; }
.card img { width: 100%; height: 12rem; object-fit: cover; }

.meta { color: var(--ink-soft); font-size: 0.92rem; }
.text-link { font-weight: 600; }

.quote-stack { display: grid; gap: 1rem; }
blockquote { margin: 0; padding: 1.3rem 1.5rem; }
blockquote footer { color: var(--ink-soft); font-size: 0.92rem; }

.cta-band { padding: 1.8rem; text-align: center; }

.page-intro { padding-top: 2.6rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0 3rem;
}
.split-block img { border-radius: var(--radius); height: 22rem; object-fit: cover; width: 100%; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.team-grid img { height: 16rem; object-fit: cover; width: 100%; }

.article-wide { padding: 2.4rem 0 3.5rem; max-width: 44rem; }
.hero-inline { border-radius: var(--radius); margin: 1rem 0 1.4rem; width: 100%; max-height: 26rem; object-fit: cover; }

.page-hero-custom { position: relative; min-height: 22rem; }
.page-hero-custom > img { width: 100%; height: 22rem; object-fit: cover; filter: saturate(0.9); }
.overlay-copy {
  position: absolute;
  inset: auto 0 1.4rem;
  color: var(--silver);
}
.overlay-copy .kicker { color: var(--cyan); }
.overlay-copy h1, .overlay-copy p { text-shadow: 0 8px 24px rgba(0,0,0,0.45); }

.case-list { display: grid; gap: 1.4rem; }
.case-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
}
.case-row img { height: 100%; min-height: 16rem; object-fit: cover; }
.case-row div { padding: 1.4rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  padding-bottom: 3rem;
}

.form, .visit { padding: 1.4rem; }
.field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
}
.field-error, .island-error, .form-status[data-kind="error"] { color: #9f1239; }
.form-status[data-kind="ok"] { color: var(--emerald); }

.legal h2 { margin-top: 1.8rem; }
.not-found { margin: 4rem auto; padding: 2rem; max-width: 36rem; text-align: center; }

.site-footer {
  margin-top: 2rem;
  padding: 2.4rem 0 1.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(196, 181, 253, 0.18));
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.9fr; gap: 1.4rem; }
.footer-brand { font-weight: 700; font-size: 1.1rem; }
.footer-label { font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-copy { opacity: 0.75; font-size: 0.9rem; }

.cookie-banner {
  position: sticky;
  bottom: 0;
  z-index: 8;
  background: linear-gradient(180deg, rgba(244,247,251,0.92), rgba(196,181,253,0.28));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.cookie-inner { padding: 1rem 0 1.2rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }

@media (max-width: 880px) {
  .hero-split, .featured-service, .card-grid, .split-block, .team-grid, .case-row, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy { margin: -3rem 1rem 1.5rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; right: 1rem; top: 4.2rem; background: rgba(255,255,255,0.92); border-radius: 1rem; padding: 0.8rem 1rem; box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
}
