:root {
  --quartz: #eef7fb;
  --silver: #d7e8f2;
  --emerald: #3dffc5;
  --emerald-deep: #0e8f74;
  --violet: #b9a4ff;
  --cyan: #7ae7ff;
  --ink: #0a1620;
  --ink-soft: #1a2e3c;
  --muted: #c5d5e0;
  --glass: rgba(238, 247, 251, 0.12);
  --stroke: rgba(186, 230, 255, 0.28);
  --shadow: 0 24px 60px rgba(4, 16, 24, 0.45);
  --font-sans: "Noto Sans Thai", "Outfit", sans-serif;
  --font-serif: "Noto Serif Thai", "Outfit", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--quartz);
  background: #071018;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(61, 255, 197, 0.22), transparent 55%),
    radial-gradient(700px 480px at 92% 8%, rgba(185, 164, 255, 0.28), transparent 50%),
    radial-gradient(800px 600px at 70% 90%, rgba(122, 231, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #07131c 0%, #0b1c28 48%, #08141c 100%);
  animation: aurora-shift 22s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  opacity: 0.7;
}

@keyframes aurora-shift {
  from {
    filter: hue-rotate(0deg) saturate(1);
  }
  to {
    filter: hue-rotate(18deg) saturate(1.12);
  }
}

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

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

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

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--quartz);
  text-decoration: none;
  font-family: "Outfit", var(--font-sans);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.brand-mark {
  width: 1.35rem;
  height: 1.7rem;
  background: linear-gradient(160deg, var(--emerald), var(--violet) 55%, var(--cyan));
  clip-path: polygon(50% 0, 100% 28%, 82% 100%, 18% 100%, 0 28%);
  box-shadow: 0 0 18px rgba(61, 255, 197, 0.45);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--stroke);
  background: var(--glass);
  color: var(--quartz);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.15rem;
}

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

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

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 78vh;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 78vh;
  filter: saturate(0.92) contrast(1.05);
}

.hero-copy {
  padding: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(122, 231, 255, 0.05) 40%, rgba(185, 164, 255, 0.08));
  border-left: 1px solid var(--stroke);
}

.place-chip {
  align-self: flex-start;
  margin: 0 0 1rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--cyan);
  background: rgba(10, 28, 36, 0.4);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 650;
  line-height: 1.25;
  color: #f6fbff;
}

.hero-copy h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-single {
  margin: 1.2rem 0 0.4rem;
}

.text-cta {
  font-weight: 600;
  color: var(--emerald);
}

.hours-slip {
  margin-top: 1.4rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver);
  font-size: 0.92rem;
}

.band {
  padding: 4.2rem 0;
}

.band-dim {
  background: rgba(255, 255, 255, 0.03);
  border-block: 1px solid var(--stroke);
}

.kicker {
  text-transform: none;
  letter-spacing: 0.08em;
  color: var(--violet);
  font-size: 0.82rem;
  margin: 0 0 0.4rem;
}

.split-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.frame-crystal {
  margin: 0;
  padding: 0.7rem;
  background: linear-gradient(160deg, rgba(61, 255, 197, 0.25), rgba(185, 164, 255, 0.2), rgba(122, 231, 255, 0.18));
  clip-path: polygon(8% 0, 100% 4%, 96% 100%, 0 94%);
}

.frame-crystal img {
  clip-path: polygon(8% 0, 100% 4%, 96% 100%, 0 94%);
}

.offer-stack {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.offer-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.2rem;
  padding: 0.8rem;
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.offer-row img {
  height: 140px;
  width: 100%;
  object-fit: cover;
}

.meta-line {
  color: var(--silver);
  font-size: 0.92rem;
}

.case-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.case-card {
  background: rgba(10, 24, 32, 0.55);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

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

.case-card h3,
.case-card p {
  margin: 0.5rem 1rem;
}

.case-card h3 {
  margin-top: 1rem;
}

.center-link {
  text-align: center;
  margin-top: 2rem;
}

.quote-block blockquote {
  margin: 0 0 1.2rem;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--emerald);
  background: rgba(61, 255, 197, 0.08);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.quote-block footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
}

.btn-pulse {
  position: relative;
  overflow: hidden;
  color: #062018;
  background: linear-gradient(120deg, var(--emerald), var(--cyan) 55%, var(--violet));
  box-shadow: 0 0 0 0 rgba(61, 255, 197, 0.55);
  animation: crystal-idle 3.6s ease-in-out infinite;
}

.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 {
  animation: crystal-pulse 0.7s ease;
}

@keyframes crystal-idle {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(61, 255, 197, 0.2);
  }
  50% {
    box-shadow: 0 0 22px 2px rgba(185, 164, 255, 0.35);
  }
}

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

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

.page-head {
  padding: 3.5rem 0 1rem;
}

.page-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

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

.service-card,
.person {
  background: var(--glass);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

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

.service-card-body,
.person {
  padding: 0 0 1rem;
}

.service-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.person img {
  height: 280px;
  width: 100%;
  object-fit: cover;
}

.person h2,
.person p {
  padding-inline: 1rem;
}

.post-list {
  display: grid;
  gap: 1.5rem;
}

.post-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.2rem;
  align-items: center;
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 1.4rem;
}

.post-row img {
  height: 150px;
  width: 100%;
  object-fit: cover;
}

.detail-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.detail-intro {
  padding-top: 2rem;
}

.prose {
  max-width: 70ch;
}

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

.cases-wall {
  display: grid;
  gap: 2rem;
}

.wall-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.wall-item:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.wall-item:nth-child(even) img {
  order: 2;
}

.wall-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 1px solid var(--stroke);
}

.cta-end {
  margin-top: 2.5rem;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.8rem;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--stroke);
}

.contact-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.crystal-form,
.visit-card {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--quartz);
  border: 1px solid var(--silver);
  border-radius: 0.4rem;
  padding: 0.55rem 0.7rem;
}

.field-error,
.island-error {
  color: #ffc7d2;
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

.form-success {
  color: var(--emerald);
  font-weight: 600;
}

.miss {
  padding: 6rem 0;
  min-height: 50vh;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--stroke);
  background: rgba(4, 12, 18, 0.7);
}

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

.footer-brand {
  font-family: "Outfit", var(--font-sans);
  font-size: 1.15rem;
  margin-top: 0;
}

.footer-label {
  color: var(--violet);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.footer-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 24, 34, 0.92);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--stroke);
  padding: 1rem 0 1.2rem;
}

.cookie-inner {
  display: grid;
  gap: 0.8rem;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.2rem 1.3rem;
    background: rgba(8, 20, 28, 0.96);
    border-bottom: 1px solid var(--stroke);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-split,
  .split-story,
  .offer-row,
  .case-preview,
  .service-grid,
  .team-grid,
  .post-row,
  .wall-item,
  .wall-item:nth-child(even),
  .contact-split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .wall-item:nth-child(even) img {
    order: 0;
  }

  .hero-photo img {
    min-height: 42vh;
  }
}
