:root {
  --navy-900: #0d1a2f;
  --navy-800: #12223d;
  --navy-700: #1c3156;
  --cream-50: #fbf7ef;
  --cream-100: #f5eee1;
  --cream-200: #ebe1cd;
  --gold-400: #d6b26a;
  --gold-500: #c49a48;
  --gold-700: #85631f;
  --ink: #1b2230;
  --ink-soft: #4b5466;
  --line-green: #06873e;
  --white: #fff;

  --radius: 14px;
  --gap: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 26, 47, .06), 0 2px 8px rgba(13, 26, 47, .06);
  --shadow-md: 0 2px 4px rgba(13, 26, 47, .06), 0 12px 28px rgba(13, 26, 47, .12);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 60px;
  --dock-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream-50);
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + 24px + env(safe-area-inset-bottom));
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.4; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
svg { flex: none; }
.ico--stroke { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy-800); color: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 26, 47, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  color: var(--white);
  border-bottom: 1px solid rgba(214, 178, 106, .18);
}
.topbar__inner { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; min-height: 44px; }
.brand__logo { width: 40px; height: 40px; border-radius: 50%; background: var(--white); object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.4; }
.brand__name { font-weight: 700; font-size: 16px; }
.brand__sub { font-size: 14px; color: var(--gold-400); }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 999px; color: rgba(255, 255, 255, .82); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.line-pill {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px 0 10px;
  background: var(--line-green); color: var(--white);
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .2s var(--ease-out), filter .2s;
}
.line-pill .ico { width: 22px; height: 22px; }
.line-pill__label { display: none; }
.line-pill:active { transform: scale(.97); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: min(70vh, 620px);
  height: min(70svh, 620px);
  min-height: 500px;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
  display: flex; align-items: flex-end;
}
.hero__media, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero__media img {
  object-fit: cover;
  object-position: 55% 12%;
  will-change: transform;
}
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 26, 47, 0) 30%, rgba(13, 26, 47, .7) 58%, rgba(13, 26, 47, .96) 100%);
}
.hero__content { position: relative; padding-top: 24px; padding-bottom: 28px; }
.hero__eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .02em;
  color: var(--gold-400); margin-bottom: 8px;
}
.hero h1 { font-size: clamp(28px, 7.6vw, 56px); line-height: 1.4; }
.hero__lead { margin-top: 10px; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .9); max-width: 34em; }
.hero__actions { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero__call { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 16px; color: rgba(255, 255, 255, .9); text-underline-offset: 4px; }
.hero__call .ico { width: 18px; height: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s, filter .2s;
}
.btn .ico { width: 24px; height: 24px; }
.btn--line { background: var(--line-green); color: var(--white); box-shadow: 0 6px 20px rgba(6, 135, 62, .35); }
.btn:active { transform: scale(.97); }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section__head { margin-bottom: 24px; max-width: 40em; }
.section__head h2, .about__text h2 { font-size: clamp(26px, 6vw, 40px); }
.section__sub { margin-top: 8px; color: var(--ink-soft); }
.kicker { font-size: 14px; font-weight: 600; color: var(--gold-700); letter-spacing: .02em; margin-bottom: 6px; }
.kicker::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--gold-500); vertical-align: middle; margin-right: 8px; transform: translateY(-2px); }
.kicker--light { color: var(--gold-400); }

/* features */
.features { padding: 0; position: relative; z-index: 2; }
.features__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap);
  margin-top: -1px; padding: 20px 0 8px;
}
.feature {
  background: var(--white); border-radius: var(--radius); padding: 16px 14px;
  box-shadow: var(--shadow-sm);
}
.feature__ico { width: 28px; height: 28px; color: var(--navy-700); margin-bottom: 8px; }
.feature h3 { font-size: 16px; font-weight: 700; }
.feature p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin-top: 2px; }

/* about */
.about__grid { display: grid; gap: 24px; }
.about__media { margin: 0; }
.about__media img { width: 100%; border-radius: var(--radius); }
.about__text p + p { margin-top: 12px; }
.about__text h2 { margin-bottom: 14px; }
.about__facts { margin: 20px 0 0; display: grid; gap: 10px; }
.about__facts div { padding: 12px 16px; background: var(--cream-100); border-radius: 12px; }
.about__facts dt { font-size: 14px; color: var(--ink-soft); }
.about__facts dd { margin: 0; font-weight: 600; }

/* services */
.services { background: var(--cream-100); }
/* ความกว้างคอลัมน์ = สัดส่วนรูป (กว้าง/สูง) ทำให้รูปสูงเท่ากันโดยไม่ต้องครอป */
.svc-grid { display: grid; gap: var(--gap); grid-template-columns: .75fr .6667fr; align-items: start; }
.svc {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.svc img { width: 100%; aspect-ratio: var(--r); }
.svc--wide { grid-column: 1 / -1; }
.svc__body { padding: 14px 14px 18px; }
.svc h3 { font-size: 17px; }
.svc p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin-top: 4px; }

.cases__title { font-size: 20px; margin: 40px 0 14px; }
.cases { display: grid; grid-template-columns: 1fr; gap: 8px; }
.case {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); border-radius: 12px; padding: 12px 14px;
}
.case svg { width: 24px; height: 24px; color: var(--navy-700); margin-top: 3px; }
.case strong { display: block; font-size: 16px; }
.case span { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* reviews */
.reviews { background: var(--navy-800); color: var(--white); }
.reviews .section__sub { color: rgba(255, 255, 255, .72); }
.quotes { display: grid; gap: var(--gap); }
.quote {
  background: var(--navy-700); border-radius: var(--radius); padding: 18px 18px 16px;
  display: flex; flex-direction: column;
}
.stars { display: flex; gap: 2px; color: var(--gold-400); margin-bottom: 8px; }
.stars svg { width: 18px; height: 18px; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.7; flex: 1; }
.quote__by { margin-top: 12px; font-size: 14px; color: var(--gold-400); font-weight: 600; }

.shots__title { font-size: 18px; margin: 36px 0 12px; }
.shots__title span { font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, .65); margin-left: 6px; }
.shots {
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent;
}
.shot { flex: 0 0 132px; scroll-snap-align: start; border-radius: 10px; overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 720 / 1600; }

/* works: masonry */
.masonry { columns: 2; column-gap: var(--gap); }
.m-item {
  display: block; break-inside: avoid; margin: 0 0 var(--gap);
  text-decoration: none; color: var(--ink);
}
.m-item img, .m-item video { width: 100%; height: auto; border-radius: 10px; background: var(--cream-200); }
.m-item video { aspect-ratio: 9 / 16; }
.m-cap { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-soft); padding: 6px 2px 4px; }
a.m-item img { transition: transform .3s var(--ease-out), filter .3s; }

/* contact */
.contact { padding-bottom: 40px; }
.contact__grid { display: grid; gap: 20px; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.c-card {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--white); border-radius: var(--radius); padding: 16px 14px;
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.c-card__ico { width: 28px; height: 28px; color: var(--navy-700); margin-bottom: 6px; }
.c-card__label { font-size: 14px; color: var(--ink-soft); }
.c-card__value { font-weight: 700; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.c-card__go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
.c-card__go--plain { text-decoration: none; color: var(--gold-700); }
.c-card--line { background: var(--line-green); color: var(--white); }
.c-card--line .c-card__ico, .c-card--line .c-card__label, .c-card--line .c-card__go { color: var(--white); }
.c-card--line .c-card__label { opacity: .85; }

.contact__place { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.map { border-radius: var(--radius); overflow: hidden; background: var(--cream-200); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; }
.landmark { margin: 0; display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; }
.landmark img { width: 112px; border-radius: 10px; }
.landmark figcaption { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

.social { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--cream-200); text-align: center; }
.social p { color: var(--ink-soft); font-size: 15px; }
.social ul { margin-top: 12px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.soc {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--white);
  transition: transform .2s var(--ease-out);
}
.soc svg { width: 20px; height: 20px; }
.soc--fb { background: #0866ff; }
.soc--tt { background: #000; }
.soc--line { background: var(--line-green); }

/* footer */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .78); font-size: 15px; padding: 32px 0; }
.footer__inner { display: grid; gap: 16px; }
.footer__name { font-weight: 700; color: var(--white); font-size: 17px; margin-bottom: 4px; }
.footer a { color: var(--gold-400); display: inline-block; padding: 10px 0; }
.footer__copy { font-size: 14px; color: rgba(255, 255, 255, .55); }

/* dock (mobile) */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(251, 247, 239, .96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -4px 18px rgba(13, 26, 47, .1);
}
.dock a {
  height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none;
}
.dock svg { width: 22px; height: 22px; }
.dock__line { background: var(--line-green); color: var(--white); }
.dock__call { background: var(--navy-800); color: var(--white); }

/* lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100vh; height: 100dvh;
  background: rgba(8, 14, 26, .94); color: var(--white);
}
.lightbox::backdrop { background: rgba(8, 14, 26, .6); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: calc(100vw - 32px); }
.lb-img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb-cap { font-size: 15px; color: rgba(255, 255, 255, .85); text-align: center; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: var(--white);
}
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; bottom: 16px; }
.lb-next { right: 8px; bottom: 16px; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .svc:hover, .c-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  a.m-item:hover img { filter: brightness(1.04); transform: translateY(-2px); }
  .btn--line:hover, .line-pill:hover, .soc:hover { filter: brightness(1.08); transform: translateY(-2px); }
  .lb-btn:hover { background: rgba(255, 255, 255, .22); }
}

/* ---------- breakpoints ---------- */
@media (min-width: 480px) {
  .masonry { columns: 3; }
  .cases { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  :root { --gap: 16px; --header-h: 68px; }
  body { font-size: 18px; padding-bottom: 0; }
  .dock { display: none; }
  .wrap { padding: 0 32px; }
  .nav { display: flex; }
  .line-pill { margin-left: 8px; }
  .line-pill__label { display: inline; }

  .hero { height: min(86vh, 760px); min-height: 560px; }
  .hero__media img { object-position: 55% 18%; }
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(13, 26, 47, .9) 0%, rgba(13, 26, 47, .55) 38%, rgba(13, 26, 47, 0) 62%),
      linear-gradient(180deg, rgba(13, 26, 47, 0) 45%, rgba(13, 26, 47, .75) 100%);
  }
  .hero__content { padding-bottom: 56px; }
  .hero__content > * { max-width: 560px; }
  .hero__lead { font-size: 18px; }

  .features__grid { grid-template-columns: repeat(4, 1fr); padding-top: 32px; }
  .feature { padding: 20px 18px; }

  .section { padding: 88px 0; }
  .features { padding: 0; }
  .section__head { margin-bottom: 36px; }

  .about__grid { grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }

  .svc-grid { grid-template-columns: .75fr .6667fr 1.7778fr; }
  .svc--wide { grid-column: auto; }

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

  .quotes { grid-template-columns: repeat(3, 1fr); }
  .shots { margin: 0; padding-left: 0; padding-right: 0; }
  .shot { flex-basis: 150px; }

  .contact__grid { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .contact__cards { gap: 12px; }

  .footer__inner { grid-template-columns: 1fr auto; align-items: end; }

  .lb-prev { left: 20px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-next { right: 20px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-img { max-width: calc(100vw - 160px); max-height: calc(100dvh - 100px); }
}

@media (min-width: 1024px) {
  .hero__media img { object-position: 50% 45%; }
  .masonry { columns: 4; }
  .hero h1 { font-size: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none !important; }
}
.nw { white-space: nowrap; }
