:root {
  --quartz: #f6f8fc;
  --quartz-deep: #e7eef8;
  --ink: #1c2433;
  --ink-soft: #445064;
  --emerald: #1f8a6d;
  --emerald-glow: #7ef0c4;
  --violet: #6c5ce7;
  --violet-glow: #cbb8ff;
  --cyan: #3ec9e0;
  --cyan-glow: #9ef3ff;
  --silver: #f8fbff;
  --line: rgba(108, 92, 231, 0.22);
  --shadow: 0 18px 40px rgba(28, 36, 51, 0.08);
  --radius: 22px;
  --font: "Sarabun", sans-serif;
  --display: "Fraunces", "Sarabun", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(126, 240, 196, 0.35), transparent 60%),
    radial-gradient(800px 480px at 100% 0%, rgba(203, 184, 255, 0.4), transparent 55%),
    radial-gradient(700px 500px at 80% 100%, rgba(158, 243, 255, 0.28), transparent 50%),
    linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
  min-height: 100vh;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); }
a:hover { color: var(--emerald); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(246, 248, 252, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 1.35rem;
  height: 1.7rem;
  clip-path: polygon(50% 0, 100% 28%, 100% 78%, 50% 100%, 0 78%, 0 28%);
  background: linear-gradient(135deg, var(--emerald-glow), var(--violet-glow) 50%, var(--cyan-glow));
  box-shadow: 0 0 16px rgba(62, 201, 224, 0.45);
}
.nav-toggle {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  cursor: pointer;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); }

.crystal {
  background: linear-gradient(160deg, rgba(255,255,255,0.78), rgba(255,255,255,0.42));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.9);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.crystal::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 55%;
  height: 80%;
  background: linear-gradient(120deg, transparent, rgba(126,240,196,0.18), rgba(203,184,255,0.22), transparent);
  transform: rotate(18deg);
  pointer-events: none;
}

.hero-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: 3.2rem 0 2.4rem;
  align-items: stretch;
}
.hero-meta {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  align-self: start;
  margin-top: 0.4rem;
}
.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 1rem;
}
.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 38rem;
}
.hero-photo {
  margin: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.92) contrast(1.04);
}
.hero-photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.inline-cta {
  display: inline-block;
  margin-top: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--emerald-glow);
  padding-bottom: 0.15rem;
  color: var(--ink);
}

.section {
  padding: 2.4rem 0;
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--emerald);
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.card-grid, .offer-grid, .post-grid, .team-grid, .work-grid {
  display: grid;
  gap: 1.2rem;
}
.offer-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.2rem; }
.post-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 1.2rem; }
.team-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.2rem; }
.work-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.2rem; }

.card {
  padding: 1.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.card h3 { margin: 0; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card img, .media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
}
.price {
  margin-top: auto;
  font-weight: 600;
  color: var(--ink);
}

.primary-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: center;
}
.primary-block img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
}

.quote-band {
  padding: 1.6rem;
  margin: 0.6rem 0 0;
}
.quote-band p {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.45;
  margin: 0;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-pulse {
  color: #07251c;
  background: linear-gradient(135deg, var(--emerald-glow), #d9fff2 40%, var(--cyan-glow));
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-pulse::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
  transform: translateX(-120%);
}
.btn-pulse:hover::after,
.btn-pulse:focus-visible::after {
  animation: crystalPulse 0.85s ease;
}
@keyframes crystalPulse {
  from { transform: translateX(-120%); opacity: 0.2; }
  40% { opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}
.btn-ghost {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  color: var(--ink);
}

.legal, .prose {
  padding-bottom: 3rem;
}
.prose p, .legal p { color: var(--ink-soft); }
.prose h1, .legal h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.2;
}
.prose ul, .legal ul { color: var(--ink-soft); padding-left: 1.2rem; }

.page-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0.8rem 0 1.4rem;
}

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-error, .island-error, [data-form-status] {
  color: #8a2f4a;
  font-size: 0.92rem;
  margin: 0.35rem 0 0;
}
[data-form-status].is-success { color: var(--emerald); }
[data-form-status].is-error { color: #8a2f4a; }

.schedule {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.schedule th, .schedule td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
.schedule th { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }

.site-footer {
  margin-top: 2rem;
  padding: 2.2rem 0 1.4rem;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.35);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}
.footer-brand { font-family: var(--display); font-size: 1.3rem; margin: 0 0 0.4rem; }
.footer-label { font-weight: 600; margin: 0 0 0.4rem; }
.site-footer a { display: block; text-decoration: none; margin: 0.2rem 0; }
.footer-copy { color: var(--ink-soft); font-size: 0.9rem; }

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 1.5rem));
  z-index: 40;
  background: linear-gradient(160deg, rgba(255,255,255,0.92), rgba(232, 244, 255, 0.88));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.cookie-inner { padding: 1rem 0.2rem 1.1rem; }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.7rem; }

.not-found { padding: 4rem 0 5rem; text-align: center; }
.not-found h1 { font-family: var(--display); font-size: 2.6rem; }

@media (max-width: 860px) {
  .hero-split, .primary-block, .footer-grid { grid-template-columns: 1fr; }
  .hero-meta {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.08em;
  }
  .site-nav[hidden] { display: none; }
  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (min-width: 861px) {
  .nav-toggle { display: none; }
  .site-nav[hidden] { display: flex !important; }
}
