:root {
  --quartz: #f4f7f5;
  --quartz-deep: #e4eeea;
  --ink: #1c2a33;
  --ink-soft: #3d4f5c;
  --emerald: #1f8f6a;
  --emerald-bright: #3dcf8a;
  --violet: #6d4bd1;
  --violet-glow: #a78bfa;
  --cyan: #22d3ee;
  --silver: #e8eef2;
  --white: #fbfffe;
  --line: rgba(28, 42, 51, 0.12);
  --shadow: 0 18px 50px rgba(29, 58, 72, 0.12);
  --radius: 22px;
  --font: "IBM Plex Sans Thai", "Outfit", sans-serif;
  --display: "Outfit", "IBM Plex Sans Thai", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(167, 139, 250, 0.28), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(34, 211, 238, 0.22), transparent 50%),
    radial-gradient(800px 480px at 70% 100%, rgba(61, 207, 138, 0.18), transparent 55%),
    linear-gradient(180deg, #eef6f4 0%, var(--quartz) 40%, #e9f2f6 100%);
  line-height: 1.7;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  background-size: 220% 220%;
  animation: sheen 18s ease-in-out infinite;
  z-index: 0;
  opacity: 0.45;
}

@keyframes sheen {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 80% 60%; }
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--white);
  padding: 8px 12px;
  z-index: 20;
}

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

.header-inner,
.footer-grid,
.wrap,
.hero-stage,
.split,
.card-grid,
.article-body {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  padding: 18px 0 8px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(251, 255, 254, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 18px;
  height: 26px;
  clip-path: polygon(50% 0, 100% 32%, 82% 100%, 18% 100%, 0 32%);
  background: linear-gradient(160deg, var(--cyan), var(--violet-glow) 45%, var(--emerald-bright));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  color: var(--ink);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--emerald);
}

.hero-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: 42px 0 20px;
  align-items: end;
}

.kicker {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 10px;
  font-family: var(--display);
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

.crystal {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.78), rgba(232, 238, 242, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-photo {
  margin: 0;
}

.hero-photo img,
.media img,
.card img,
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo img {
  height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.facet-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.facet-list li {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.quote-band {
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 40px;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(120deg, var(--emerald), var(--violet) 55%, #2aa8c4);
  background-size: 160% 160%;
}

.btn-pulse {
  animation: crystal-pulse 2.8s ease-out infinite;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid var(--line);
  animation: none;
}

@keyframes crystal-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(109, 75, 209, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 207, 138, 0); }
}

.btn:hover {
  filter: brightness(1.05);
}

.section {
  padding: 28px 0 8px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 28px;
}

.card,
.legal,
.form-panel,
.price-card,
.person,
.case {
  overflow: hidden;
}

.card img,
.case img {
  height: 180px;
}

.card-body,
.case-body,
.person-body,
.price-card,
.form-panel,
.legal,
.article-body,
.pad {
  padding: 18px 20px 22px;
}

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

.meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-bottom: 36px;
}

.media img {
  height: 100%;
  min-height: 280px;
  border-radius: var(--radius);
}

.evidence {
  display: grid;
  gap: 14px;
}

.evidence blockquote {
  margin: 0;
  padding: 16px 18px;
  border-left: 3px solid var(--cyan);
}

.team-grid,
.price-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 40px;
}

.portrait img {
  height: 220px;
}

.price-grid {
  grid-template-columns: repeat(3, 1fr);
}

.form {
  display: grid;
  gap: 12px;
}

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

input,
select,
textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error,
.form-status {
  color: #9a2f4a;
  margin: 0;
  font-size: 0.92rem;
}

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

.site-footer {
  margin-top: 40px;
  padding: 36px 0 24px;
  background: rgba(28, 42, 51, 0.92);
  color: #e8eef2;
}

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

.footer-brand {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.footer-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.site-footer a {
  color: #c4f5e2;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-copy {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 0;
  opacity: 0.7;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 720px;
  margin-inline: auto;
  padding: 16px 18px;
  background: rgba(251, 255, 254, 0.92);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  z-index: 30;
}

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

.legal h1 {
  max-width: none;
}

.legal p,
.legal li {
  max-width: 68ch;
}

.crumbs {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.article-hero img {
  height: 320px;
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
}

.not-found {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

@media (max-width: 900px) {
  .hero-stage,
  .split,
  .card-grid,
  .team-grid,
  .price-grid,
  .case-grid,
  .footer-grid,
  .quote-band {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    background: rgba(251, 255, 254, 0.96);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow);
  }

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

  .site-nav ul {
    flex-direction: column;
  }

  h1 {
    max-width: none;
  }
}
