:root {
  --quartz: #eef7fb;
  --silver: #d7e8f2;
  --ink: #0b1730;
  --ink-soft: #1a2c4d;
  --emerald: #3ee6b0;
  --violet: #b38cff;
  --cyan: #7cf0ff;
  --glass: rgba(238, 247, 251, 0.08);
  --glass-strong: rgba(238, 247, 251, 0.14);
  --stroke: rgba(124, 240, 255, 0.35);
  --font: "Noto Sans Thai", "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--quartz);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(179, 140, 255, 0.28), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(62, 230, 176, 0.22), transparent 50%),
    radial-gradient(800px 500px at 70% 80%, rgba(124, 240, 255, 0.16), transparent 45%),
    linear-gradient(180deg, #071224 0%, #0b1730 40%, #10203f 100%);
  min-height: 100vh;
  line-height: 1.7;
}

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

a {
  color: var(--cyan);
}

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

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 20;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(11, 23, 48, 0.72);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--quartz);
  font-weight: 600;
}

.brand-mark {
  width: 1.1rem;
  height: 1.6rem;
  background: linear-gradient(135deg, var(--emerald), var(--cyan), var(--violet));
  clip-path: polygon(50% 0, 100% 28%, 82% 100%, 18% 100%, 0 28%);
  box-shadow: 0 0 16px rgba(124, 240, 255, 0.6);
}

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

.site-nav {
  display: flex;
  gap: 1.1rem;
}

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

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

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.crystal {
  background: linear-gradient(160deg, var(--glass-strong), var(--glass));
  border: 1px solid var(--stroke);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 20px 40px rgba(0, 0, 0, 0.18);
  border-radius: 1.25rem;
}

.hero-editorial {
  display: grid;
  grid-template-columns: 4.5rem 1.15fr 0.95fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 3.5rem;
}

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

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
  border-radius: 1.5rem;
  filter: saturate(0.9) contrast(1.05);
}

.hero-panel {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-panel h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 1rem;
}

.hero-action a {
  color: var(--quartz);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}

.block {
  margin: 3rem 0;
}

.section-head h2,
.page-intro h1,
.legal h1,
.post-header h1,
.detail-caption h1,
.not-found h1 {
  line-height: 1.35;
}

.primary-offer {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
}

.primary-offer img,
.service-row img,
.case-block img,
.team-grid img,
.post-cover,
.detail-hero img,
.blog-index img,
.card img {
  object-fit: cover;
  width: 100%;
}

.primary-offer img {
  min-height: 16rem;
}

.primary-offer > div,
.service-row > div,
.case-block > div {
  padding: 1.5rem;
}

.card-list,
.team-grid,
.blog-index {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.card-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card img {
  height: 10rem;
  border-radius: 1.25rem 1.25rem 0 0;
}

.card {
  overflow: hidden;
}

.card h3,
.card p {
  padding: 0 1rem;
}

.card h3 {
  margin-bottom: 0.3rem;
}

.card h3 a {
  color: var(--quartz);
  text-decoration: none;
}

.price-line,
.meta,
.eyebrow,
.role {
  color: var(--emerald);
  font-size: 0.92rem;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.quote-band blockquote {
  margin: 0;
  padding: 1.5rem 1.75rem;
  font-size: 1.15rem;
}

.quote-band footer {
  margin-top: 1rem;
  color: var(--silver);
}

.case-strip {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.case-strip img {
  height: 8.5rem;
  object-fit: cover;
  border-radius: 0.9rem;
}

.case-strip a {
  color: var(--quartz);
  text-decoration: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.inline-cta {
  margin-top: 1.5rem;
}

.page-intro {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.service-stack {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.service-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}

.service-row img {
  height: 100%;
  min-height: 10rem;
}

.detail-hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-hero img {
  max-height: 22rem;
  object-fit: cover;
  border-radius: 1.25rem;
}

.detail-caption {
  padding: 1.25rem 1.5rem;
}

.split-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.split-lists > div {
  padding: 1.25rem;
}

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

.case-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
}

.case-block img {
  height: 100%;
  min-height: 12rem;
}

.outcome {
  color: var(--cyan);
}

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

.team-grid li {
  overflow: hidden;
}

.team-grid img {
  height: 16rem;
}

.team-grid h3,
.team-grid p {
  padding: 0 1rem;
}

.blog-index a {
  display: grid;
  grid-template-columns: 220px 1fr;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.blog-index img {
  height: 100%;
  min-height: 9rem;
}

.blog-index div {
  padding: 1rem 1.2rem;
}

.post-cover {
  border-radius: 1.25rem;
  margin: 1rem 0 1.5rem;
  max-height: 24rem;
  object-fit: cover;
  width: 100%;
}

.lede {
  color: var(--silver);
  font-size: 1.1rem;
}

.post-body,
.legal,
.service-detail {
  max-width: 44rem;
}

.legal h2 {
  margin-top: 1.8rem;
}

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

.form,
.contact-aside {
  padding: 1.5rem;
}

.field {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--quartz);
  border: 0;
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
}

.field-error,
.island-error,
.form-status[data-state="error"] {
  color: #ffb4c8;
}

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

.btn {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  text-decoration: none;
  display: inline-block;
}

.btn-pulse {
  color: var(--ink);
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(124, 240, 255, 0.6);
  animation: crystal-pulse 2.8s ease-out infinite;
}

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

@keyframes crystal-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(179, 140, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(124, 240, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(62, 230, 176, 0);
  }
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 2.5rem 1.25rem 5.5rem;
  background: rgba(7, 18, 36, 0.7);
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 1.5rem;
}

.footer-grid a {
  display: block;
  color: var(--silver);
  text-decoration: none;
}

.footer-brand,
.footer-label {
  color: var(--emerald);
  font-weight: 600;
}

.footer-note {
  max-width: 1120px;
  margin: 2rem auto 0;
  color: var(--silver);
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 40rem;
  margin-left: auto;
  padding: 1rem 1.2rem;
  background: rgba(16, 32, 63, 0.94);
  border: 1px solid var(--stroke);
  border-radius: 1.1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 30;
}

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

.not-found {
  padding: 3rem 1.5rem;
  text-align: center;
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    padding: 1rem;
    background: rgba(11, 23, 48, 0.96);
    border: 1px solid var(--stroke);
    border-radius: 1rem;
  }

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

  .hero-editorial,
  .primary-offer,
  .service-row,
  .case-block,
  .blog-index a,
  .contact-layout,
  .split-lists,
  .footer-grid,
  .team-grid,
  .case-strip {
    grid-template-columns: 1fr;
  }

  .hero-kicker {
    writing-mode: horizontal-tb;
    transform: none;
  }
}
