:root {
  --ink: #101820;
  --ink-soft: #1b2934;
  --paper: #f7f6f1;
  --white: #ffffff;
  --muted: #5d6872;
  --line: rgba(16, 24, 32, 0.12);
  --gold: #d7a84b;
  --cyan: #25c7d9;
  --coral: #ee6f57;
  --green: #6fae75;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.14);
  --hero-card-height: 82px;
  --eyebrow-size: 1rem;
  --hero-title-offset: 44px;
  --hero-video-height: 350px;
  --hero-video-lift: -20px;
  --hero-proof-drop: 0px;
  --nav-font-size: 1.08rem;
  --zh-hero-title-size: clamp(3rem, 4.1vw, 3.85rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 1180px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans Thai", system-ui, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 16px 24px auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(16, 24, 32, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 220px;
}

.brand-logo {
  width: 220px;
  height: 58px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: var(--nav-font-size);
  font-weight: 700;
  padding: 12px 15px;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--gold);
  color: var(--ink);
}

.header-action {
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  padding: 11px 14px;
  white-space: nowrap;
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.05);
}

.language-switcher button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 9px;
}

.language-switcher button.active {
  background: var(--ink);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.section,
.hero,
.contact {
  padding: 52px max(24px, calc((100vw - 1180px) / 2));
}

.section-dark {
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 199, 217, 0.18), transparent 30%),
    linear-gradient(135deg, #101820 0%, #172632 54%, #0c1117 100%);
  color: var(--white);
}

.hero {
  min-height: 0;
  padding: 120px 24px 14px;
}

.hero-inner {
  display: grid;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.94fr);
  align-items: stretch;
  gap: 36px;
}

.hero-copy,
.hero-media {
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: var(--eyebrow-size);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

.hero-title,
h1 {
  max-width: 720px;
  font-size: clamp(2.4rem, 4.7vw, 4.35rem);
  letter-spacing: 0;
}

html[lang="zh"] .hero-title {
  max-width: 780px;
  font-size: var(--zh-hero-title-size);
  line-height: 1.08;
}

html[lang="en"] .hero-title {
  max-width: 820px;
  font-size: clamp(1.55rem, 1.8vw, 1.8rem);
  line-height: 1.18;
}

html[lang="th"] .hero-title {
  max-width: 760px;
  font-size: clamp(2.45rem, 3.35vw, 3.35rem);
  line-height: 1.12;
}

h2 {
  max-width: 760px;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.2rem;
}

.hero-text,
.contact-copy > p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 21px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  padding: 13px 18px;
}

.button.primary {
  background: var(--gold);
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.hero-media {
  min-height: 100%;
  align-self: stretch;
  padding-top: var(--hero-title-offset);
}

.hero-visual-stack {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  align-content: start;
  row-gap: 18px;
  height: 100%;
}

.hero-main-image,
.hero-video-frame {
  position: relative;
  grid-row: 1 / 3;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero-main-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 40%, rgba(16, 24, 32, 0.5)),
    linear-gradient(90deg, rgba(16, 24, 32, 0.28), transparent 45%);
}

.hero-video-frame {
  display: grid;
  width: 100%;
  max-width: 100%;
  height: var(--hero-video-height);
  align-self: center;
  aspect-ratio: auto;
  min-height: 0;
  transform: translateY(var(--hero-video-lift));
}

.hero-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-strip {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.logo-strip span {
  color: var(--muted);
  font-weight: 800;
}

.logo-viewport {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.logo-viewport::before,
.logo-viewport::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 58px;
  content: "";
  pointer-events: none;
}

.logo-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--white), transparent);
}

.logo-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--white), transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  animation: logoTicker 28s linear infinite;
}

.logo-viewport:hover .logo-track {
  animation-play-state: paused;
}

.logo-track img {
  width: 96px;
  max-height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

@keyframes logoTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.video-feature {
  background: var(--ink);
  color: var(--white);
  padding-top: 90px;
}

.video-feature .section-heading h2 {
  color: var(--white);
}

.video-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

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

.about {
  padding: 42px max(24px, calc((100vw - 1180px) / 2)) 30px;
}

.about .section-heading {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.about .section-heading h2 {
  max-width: 980px;
  font-size: clamp(2rem, 4vw, 3.55rem);
}

.title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  align-items: baseline;
}

.title-line .eyebrow {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  text-transform: none;
}

.about-content {
  display: grid;
  gap: 12px;
}

.about-grid {
  gap: 12px;
}

.about-grid article,
.service-grid article,
.testimonial-grid figure {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(16, 24, 32, 0.06);
  padding: 22px;
}

.about-grid article {
  min-height: 190px;
}

.about-grid h3 {
  font-size: 1.05rem;
}

.about-grid p {
  margin-bottom: 0;
}

.about-grid p,
.service-grid p,
.process-list p,
.case-card p,
.testimonial-grid blockquote {
  color: var(--muted);
}

.mission-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.mission-strip span {
  background: var(--white);
  color: var(--muted);
  padding: 16px 18px;
}

.mission-strip strong {
  color: var(--ink);
}

.work {
  background: var(--white);
  padding-top: 42px;
}

.work .section-heading {
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}

.services .section-heading {
  grid-template-columns: 1fr;
}

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

.case-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

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

.case-card div {
  padding: 20px;
}

.case-card span,
.accent-card > span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-card h3 {
  max-width: 560px;
  margin-top: 8px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.accent-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(215, 168, 75, 0.94), rgba(238, 111, 87, 0.9)),
    var(--gold);
  color: var(--ink);
}

.accent-card h3 {
  margin-top: 8px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.accent-card p {
  color: rgba(16, 24, 32, 0.76);
}

.source-gallery {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.source-gallery button {
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
  padding: 0;
}

.source-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}

.source-gallery button:hover img {
  opacity: 0.86;
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 14, 0.88);
  padding: 72px 92px;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: min(1120px, 100%);
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 800;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-nav.prev {
  left: 24px;
}

.lightbox-nav.next {
  right: 24px;
}

.lightbox-count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.services {
  background: var(--paper);
  padding-bottom: 54px;
}

.service-grid {
  grid-template-columns: repeat(5, 1fr);
}

.service-grid article {
  overflow: hidden;
  min-height: 300px;
  padding: 0;
}

.service-index {
  display: block;
  color: var(--coral);
  font-weight: 800;
  padding: 22px 22px 0;
}

.service-image-button {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  padding: 0;
}

.service-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}

.service-image-button:hover img {
  opacity: 0.86;
  transform: scale(1.04);
}

.service-grid h3 {
  margin-top: 28px;
  padding: 0 22px;
}

.service-grid p {
  padding: 0 22px 24px;
}

.process {
  background: var(--ink);
  color: var(--white);
  padding-top: 48px;
  padding-bottom: 42px;
}

.process .section-heading h2 {
  color: var(--white);
}

.process .section-heading {
  grid-template-columns: 1fr;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.process-list li {
  background: var(--ink-soft);
  padding: 24px;
}

.process-list span {
  color: var(--cyan);
  font-weight: 800;
}

.process-list h3 {
  margin-top: 36px;
}

.process-list p {
  color: rgba(255, 255, 255, 0.68);
}

.testimonial-grid figure {
  margin: 0;
}

.testimonials .section-heading {
  grid-template-columns: 1fr;
}

.testimonial-grid blockquote {
  margin: 0;
  font-size: 1.08rem;
}

.testimonial-grid img {
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-grid figcaption {
  margin-top: 24px;
  font-weight: 800;
}

.testimonial-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 48px;
}

.contact-list,
.social-row {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-list a,
.contact-list span,
.social-row a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  padding-bottom: 12px;
}

.contact-list a[data-i18n="contact.address"] {
  color: var(--green);
}

.social-row {
  grid-template-columns: repeat(3, max-content);
  gap: 14px;
}

.social-row a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 9px 12px;
}

.contact-qr-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 34px;
}

.contact-qr-card p {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.contact-qr-card img {
  width: min(320px, 100%);
  border-radius: 8px;
  background: var(--white);
}

.contact-qr-card .button {
  width: min(320px, 100%);
}

.site-footer {
  padding: 24px;
  background: #090d12;
  color: rgba(255, 255, 255, 0.66);
  text-align: center;
}

@media (min-width: 821px) {
  :root {
    --hero-title-offset: 4px;
  }

  .about .section-heading h2,
  .work .section-heading h2,
  .process .section-heading h2 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(2.45rem, 3.3vw, 3.35rem);
  }

  .services .section-heading h2 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(2rem, 2.75vw, 2.75rem);
  }

  .services .title-line {
    flex-wrap: nowrap;
  }

  .testimonials .section-heading h2 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(2rem, 2.75vw, 2.75rem);
  }

  .testimonials .title-line {
    flex-wrap: nowrap;
  }

  html[lang="en"] .section-heading h2,
  html[lang="th"] .section-heading h2 {
    max-width: 1180px;
    white-space: normal;
  }

  html[lang="en"] .title-line,
  html[lang="th"] .title-line {
    flex-wrap: wrap;
  }

  html[lang="en"] .about .section-heading h2,
  html[lang="th"] .about .section-heading h2,
  html[lang="en"] .work .section-heading h2,
  html[lang="th"] .work .section-heading h2,
  html[lang="en"] .process .section-heading h2,
  html[lang="th"] .process .section-heading h2 {
    font-size: clamp(2rem, 2.55vw, 2.55rem);
  }

  html[lang="en"] .services .section-heading h2,
  html[lang="th"] .services .section-heading h2,
  html[lang="en"] .testimonials .section-heading h2,
  html[lang="th"] .testimonials .section-heading h2 {
    font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  }
}
