:root {
  --bg: #071018;
  --bg-2: #0c1824;
  --quartz: rgba(244, 247, 251, 0.08);
  --quartz-strong: rgba(244, 247, 251, 0.16);
  --line: rgba(199, 232, 255, 0.22);
  --text: #f4f7fb;
  --muted: #b7c6d6;
  --emerald: #6ff3c0;
  --violet: #c4b5fd;
  --cyan: #67e8f9;
  --silver: #e8eef6;
  --danger: #ffb4b4;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(3, 10, 18, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Sarabun", "Prompt", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(111, 243, 192, 0.18), transparent 55%),
    radial-gradient(900px 500px at 95% 0%, rgba(196, 181, 253, 0.2), transparent 50%),
    radial-gradient(800px 500px at 70% 90%, rgba(103, 232, 249, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 40%, #08141f);
  min-height: 100vh;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.04) 48%, transparent 56%);
  mix-blend-mode: screen;
  animation: auroraShift 18s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes auroraShift {
  from { transform: translateX(-6%); opacity: 0.45; }
  to { transform: translateX(8%); opacity: 0.8; }
}

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

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

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

.shell {
  width: min(1120px, calc(100% - 32px));
  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(16px);
  background: rgba(7, 16, 24, 0.72);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

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

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

.brand-mark {
  width: 28px;
  height: 34px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, var(--emerald), var(--violet) 60%, var(--cyan));
  box-shadow: 0 0 18px rgba(111, 243, 192, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

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

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

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

.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(111, 243, 192, 0.2), rgba(103, 232, 249, 0.18));
  border: 1px solid rgba(111, 243, 192, 0.4);
}

.hero-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
  padding: 42px 0 20px;
}

.hero-photo {
  position: relative;
  min-height: 420px;
}

.gallery-lead {
  min-height: 320px;
  margin-bottom: 28px;
}

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

.hero-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  background: rgba(7, 16, 24, 0.72);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.kicker {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--emerald);
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0 0 16px;
}

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

.hero-meta {
  display: flex;
  gap: 24px;
  margin: 28px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #8ff7d0, #9ae7ff 55%, #d4c4ff);
  color: #071018;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

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

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

@keyframes crystalPulse {
  0% { transform: scale(0.2); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

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

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

.section {
  padding: 48px 0;
}

.section h2 {
  font-size: 1.7rem;
  margin-top: 0;
}

.primary-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 28px;
}

.primary-block img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 14px;
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

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

.quote-stack {
  display: grid;
  gap: 16px;
}

.quote {
  padding: 20px 22px;
}

.quote p {
  margin-top: 0;
  font-size: 1.05rem;
}

.page-hero {
  padding: 40px 0 10px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 18ch;
}

.article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.legal, .prose {
  max-width: 72ch;
}

.legal h2, .prose h2 {
  margin-top: 2rem;
}

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

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

input, textarea, select {
  font: inherit;
  color: var(--text);
  background: rgba(7, 16, 24, 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);
}

.price-grid, .team-grid, .work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.price-card {
  padding: 22px;
}

.includes {
  padding-left: 18px;
}

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

.cookie-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 18px;
  background: rgba(10, 22, 32, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  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;
}

@media (max-width: 900px) {
  .hero-split, .primary-block, .offer-list, .price-grid, .team-grid, .work-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    padding: 16px;
    background: rgba(8, 18, 28, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .site-nav.is-open {
    display: flex;
  }
  .hero-photo {
    min-height: 280px;
  }
  .kicker {
    writing-mode: horizontal-tb;
    transform: none;
  }
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 36px 0 18px;
  background: rgba(5, 12, 18, 0.5);
}

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

.footer-brand, .footer-label {
  font-family: "Prompt", sans-serif;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-copy {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
