:root {
  --bg: #06131c;
  --bg-2: #0a1c28;
  --facet: rgba(244, 247, 251, 0.09);
  --facet-strong: rgba(244, 247, 251, 0.18);
  --line: rgba(167, 232, 255, 0.24);
  --text: #f3f7fb;
  --muted: #b4c5d4;
  --emerald: #6ff3c0;
  --violet: #c4b5fd;
  --cyan: #67e8f9;
  --silver: #e8eef6;
  --danger: #ffb4b4;
  --radius: 22px;
  --shadow: 0 28px 70px rgba(2, 8, 16, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Sarabun", "Prompt", sans-serif;
  background:
    radial-gradient(900px 520px at 80% -8%, rgba(196, 181, 253, 0.22), transparent 55%),
    radial-gradient(700px 480px at -5% 20%, rgba(111, 243, 192, 0.16), transparent 50%),
    radial-gradient(640px 420px at 40% 110%, rgba(103, 232, 249, 0.14), transparent 45%),
    linear-gradient(165deg, var(--bg), var(--bg-2) 38%, #071820);
  min-height: 100vh;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.05) 50%, transparent 58%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 14px);
  mix-blend-mode: screen;
  animation: auroraDrift 22s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes auroraDrift {
  from { transform: translateY(-3%) translateX(-4%); opacity: 0.4; }
  to { transform: translateY(4%) translateX(5%); opacity: 0.85; }
}

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

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

h1, h2, h3, .brand-text strong, .footer-brand {
  font-family: "Prompt", "Sarabun", sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.28;
}

.shell {
  width: min(1080px, calc(100% - 28px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(6, 19, 28, 0.7);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 32px;
  clip-path: polygon(50% 4%, 96% 92%, 4% 92%);
  background: linear-gradient(200deg, var(--cyan), var(--emerald) 45%, var(--violet));
  box-shadow: 0 0 20px rgba(103, 232, 249, 0.45);
}

.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 0.98rem; }
.brand-text em {
  font-style: normal;
  font-size: 0.76rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--facet);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
}

.site-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

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

.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(111, 243, 192, 0.18), rgba(196, 181, 253, 0.16));
  border: 1px solid rgba(111, 243, 192, 0.38);
}

.hero-band {
  padding-top: 8px;
}

.hero-band img {
  width: 100%;
  height: min(52vh, 460px);
  object-fit: cover;
  border-radius: 0 0 28px 28px;
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: var(--shadow);
}

.hero-ledger {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 28px 0 12px;
}

.place-plate {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--facet-strong), var(--facet));
  border-radius: var(--radius);
  padding: 18px 16px;
  backdrop-filter: blur(12px);
}

.place-plate dt {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--emerald);
  margin: 0 0 4px;
}

.place-plate dd {
  margin: 0 0 14px;
  color: var(--muted);
}

.hero-ledger h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  margin: 0 0 14px;
  max-width: 16ch;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46ch;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #7ef0c8, #8ee7ff 50%, #d2c6ff);
  color: #06131c;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -45%;
  background: radial-gradient(circle, rgba(255,255,255,0.85), transparent 46%);
  transform: scale(0);
  opacity: 0;
}

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

@keyframes crystalPulse {
  0% { transform: scale(0.15); opacity: 0.95; }
  100% { transform: scale(1.5); opacity: 0; }
}

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

.panel {
  background: linear-gradient(165deg, var(--facet-strong), var(--facet));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.section { padding: 44px 0; }
.section h2 { font-size: 1.65rem; margin-top: 0; }

.primary-stack {
  display: grid;
  gap: 18px;
}

.primary-stack img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

.primary-copy { padding: 8px 4px 0; }

.offer-list, .post-grid, .team-grid, .work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.offer-card, .post-card, .team-card, .work-card { overflow: hidden; }

.offer-card img, .post-card img, .work-card img, .team-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body { padding: 16px 18px 20px; }
.card-body h3 { margin: 0 0 8px; font-size: 1.12rem; }

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

.quote-rail {
  display: grid;
  gap: 14px;
}

.quote { padding: 20px 22px; }
.quote p { margin-top: 0; font-size: 1.04rem; }

.page-hero { padding: 36px 0 8px; }
.page-hero h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  max-width: 20ch;
}

.legal, .prose { max-width: 70ch; }
.legal h2, .prose h2 { margin-top: 1.8rem; }

.form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

label { display: grid; gap: 6px; font-weight: 600; }

input, textarea, select {
  font: inherit;
  color: var(--text);
  background: rgba(6, 19, 28, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

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

.form-status[data-ok="true"] { color: var(--emerald); }

.includes { padding-left: 18px; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 40;
}

.cookie-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 18px;
  background: rgba(8, 24, 34, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.not-found {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 48px 16px;
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding: 32px 0 16px;
  background: rgba(4, 12, 18, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 0.8fr 0.8fr;
  gap: 20px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-copy { margin-top: 22px; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 880px) {
  .hero-ledger, .offer-list, .post-grid, .team-grid, .work-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 62px;
    right: 14px;
    left: 14px;
    flex-direction: column;
    padding: 16px;
    background: rgba(7, 20, 30, 0.97);
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .site-nav.is-open { display: flex; }
  .hero-band img { height: 240px; border-radius: 0 0 20px 20px; }
}
