:root {
  --sky: #071018;
  --sky-2: #0d1a28;
  --quartz: #f4f0e8;
  --quartz-dim: rgba(244, 240, 232, 0.72);
  --emerald: #3ef0b4;
  --emerald-deep: #0f8f6c;
  --violet: #b9a0ff;
  --cyan: #7ee7f2;
  --silver: #e8eef5;
  --ink: #eef4f8;
  --muted: #a8b6c4;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-2: rgba(255, 255, 255, 0.12);
  --line: rgba(184, 230, 255, 0.22);
  --danger: #ffb4c0;
  --ok: #9cf3c8;
  --radius: 22px;
  --font: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
  --display: "Cormorant Garamond", "IBM Plex Sans Thai", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sky);
  line-height: 1.7;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(62, 240, 180, 0.22), transparent 55%),
    radial-gradient(700px 480px at 92% 8%, rgba(185, 160, 255, 0.28), transparent 50%),
    radial-gradient(800px 520px at 70% 100%, rgba(126, 231, 242, 0.16), transparent 55%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 50%, #08141f 100%);
}

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

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }

a:hover { color: var(--emerald); }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 24, 0.62);
  border-bottom: 1px solid var(--line);
}

.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;
  color: var(--quartz);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  background:
    linear-gradient(135deg, var(--emerald), var(--cyan) 45%, var(--violet));
  box-shadow: 0 0 18px rgba(62, 240, 180, 0.55);
}

.site-nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

.site-nav a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--emerald); }

.nav-cta {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 6px;
  background: var(--quartz);
}

.crystal {
  background: linear-gradient(160deg, var(--glass-2), var(--glass));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: end;
  padding: 3.2rem 0 2.4rem;
}

.kicker {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 0.6rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--quartz);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin: 0 0 0.8rem;
  font-style: italic;
}

.lede {
  font-size: 1.12rem;
  color: var(--quartz-dim);
  max-width: 38rem;
}

.hero-meta {
  margin-top: 1.6rem;
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.hero-meta strong { color: var(--emerald); font-weight: 600; }

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
}

.prism-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--sky);
  background: var(--quartz);
}

.btn-pulse {
  position: relative;
  overflow: hidden;
  color: var(--sky);
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
}

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

.btn-pulse:hover::after,
.btn-pulse:focus-visible::after {
  animation: crystalPulse 0.7s ease;
}

@keyframes crystalPulse {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

.btn-ghost {
  background: transparent;
  color: var(--quartz);
  border: 1px solid var(--line);
}

.section { padding: 2.6rem 0; }

.section h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 0.5rem; }

.prose { color: var(--quartz-dim); max-width: 42rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.4rem;
}

.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img { height: 180px; width: 100%; object-fit: cover; }

.card-body { padding: 1.1rem 1.15rem 1.25rem; }

.card h3 { margin: 0 0 0.4rem; font-size: 1.35rem; }

.muted { color: var(--muted); }

.quote-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quote {
  padding: 1.3rem 1.4rem;
}

.quote p { margin: 0 0 0.7rem; font-size: 1.05rem; color: var(--quartz); }

.price-note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.team-card img {
  height: 240px;
  width: 100%;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

.team-card div { padding: 1rem 1.1rem 1.2rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 0.85rem;
  padding: 1.3rem;
}

label { font-weight: 500; }

input, select, textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 28, 0.55);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

textarea { min-height: 8rem; resize: vertical; }

.field-error, .form-banner {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.form-banner.ok { color: var(--ok); }

.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { margin-top: 1.8rem; font-size: 1.45rem; }
.legal p, .legal li { color: var(--quartz-dim); }

.page-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line);
  margin: 1rem 0 1.5rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 2.4rem 0 1.4rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 1.5rem;
}

.footer-brand { font-weight: 600; color: var(--quartz); }
.footer-label { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; color: var(--violet); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0.25rem 0; }
.footer-copy { color: var(--muted); font-size: 0.88rem; }

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 1.5rem));
  z-index: 50;
  padding: 1rem 0;
  border-radius: var(--radius);
  background: rgba(10, 22, 34, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}

.cookie-inner { display: grid; gap: 0.8rem; }
.cookie-actions { display: flex; gap: 0.6rem; justify-content: flex-end; }

.not-found {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cyan);
  margin-right: 0.3rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.3rem;
    background: rgba(7, 16, 24, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .hero-editorial,
  .card-grid,
  .quote-strip,
  .team-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual img,
  .page-hero img { height: 240px; }
}
