:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --white: #fffefb;
  --ink: #182824;
  --muted: #4c6058;
  --rule: #d3dcd3;
  --pine: #214e41;
  --pine-dark: #12372d;
  --tint: #e7eee5;
  --night: #142e28;
  --radius: 12px;
  --sticky-header-height: 77px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-header-height);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.68 "Segoe UI Variable", "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
.lang-th { font-family: "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif; }
.lang-ko { word-break: keep-all; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.18; }
em { font-style: normal; }
:focus-visible { outline: 3px solid #956743; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1200px, calc(100% - 100px)); margin-inline: auto; }
.skip { position: fixed; z-index: 30; left: 12px; top: 12px; padding: 8px 12px; background: var(--white); transform: translateY(-190%); }
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #0e2d25;
  background: var(--pine-dark);
  color: #fcfaf4;
  box-shadow: 0 4px 16px #142e281a;
}
.site-header :focus-visible { outline-color: #e6bc86; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 22px; }
.brand {
  min-width: 0;
  color: inherit;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.menu, .header-actions, .languages { display: flex; align-items: center; }
.menu { justify-content: center; gap: clamp(16px, 2.8vw, 38px); flex-wrap: wrap; }
.menu a, .header-inquiry { font-size: 14px; font-weight: 650; white-space: nowrap; }
.menu a { color: #dbe9df; }
.menu a:hover { color: #fff; }
.header-actions { flex: none; gap: 16px; }
.header-inquiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 7px 14px;
  border: 1px solid #99b9ab;
  border-radius: 5px;
  color: inherit;
}
.header-inquiry:hover { background: #2c5448; }
.languages { gap: 2px; }
.languages a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 7px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.languages a:hover, .languages a[aria-current=page] { background: #31594d; color: #fff; }
.languages img { width: 18px; height: 13px; border: 1px solid #ffffff35; border-radius: 2px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .98fr);
  gap: clamp(29px, 4vw, 62px);
  align-items: center;
  padding-block: clamp(49px, 7vw, 101px) clamp(38px, 5vw, 70px);
}
.eyebrow { color: var(--pine); font-size: 13px; font-weight: 750; }
.hero-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 11px; }
.hero-experience { padding-inline-start: 11px; border-inline-start: 1px solid #a4b8aa; color: var(--muted); }
.hero h1 {
  margin-block: 19px 20px;
  font-size: clamp(40px, 4.5vw, 67px);
  font-weight: 790;
  letter-spacing: -.06em;
  line-height: 1.13;
}
.hero h1 span, .hero h1 em { display: block; text-wrap: balance; }
.hero h1 em { color: var(--pine); }
.lang-ko .hero h1 { font-size: clamp(38px, 4vw, 58px); }
.lang-th .hero h1 { font-size: clamp(37px, 4.1vw, 61px); letter-spacing: -.035em; line-height: 1.21; }
.lang-en .hero h1 { font-size: clamp(39px, 4.6vw, 69px); }
.hero-intro { max-width: 53ch; color: var(--muted); font-size: clamp(16px, 1.55vw, 19px); white-space: pre-line; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 25px; }
.button, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}
.button { min-height: 47px; padding: 11px 16px; border: 1px solid transparent; border-radius: 6px; }
.primary { background: var(--pine-dark); color: #fff; }
.primary:hover { background: #265446; }
.hero-actions .text-link { min-height: 47px; color: var(--pine-dark); }
.text-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.hero-art { overflow: hidden; border-radius: var(--radius); background: #ddd8c7; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }

.engagement { border-block: 1px solid var(--rule); }
.engagement-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.engagement-list > div { padding: 17px 22px; min-width: 0; }
.engagement-list > div:first-child { padding-inline-start: 0; }
.engagement-list > div + div { border-inline-start: 1px solid var(--rule); }
.engagement-list dt { font-size: 12px; font-weight: 750; color: var(--pine); }
.engagement-list dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 640; }

.section, .about { padding-block: clamp(54px, 7vw, 96px); }
.section h2, .about h2, .technology-section h2, .contact h2 {
  font-size: clamp(33px, 4.3vw, 54px);
  font-weight: 780;
  letter-spacing: -.05em;
}
.lang-th h2 { letter-spacing: -.025em; }
.project h3 { font-size: clamp(22px, 2.6vw, 33px); letter-spacing: -.035em; }
.project > p { margin-top: 11px; color: var(--muted); }
.projects { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.project { padding: 22px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); }
.project > p { white-space: pre-line; }
.project .text-link { margin-top: 12px; color: var(--pine-dark); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 15px 0 0; list-style: none; }
.tags li { padding: 3px 8px; border-radius: 4px; color: var(--pine-dark); background: var(--tint); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }

.service-band { background: #e9eee7; border-block: 1px solid var(--rule); }
.service-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
.service-heading .text-link, .catalog-inquiry a { color: var(--pine-dark); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 16px; margin-top: 29px; }
.service-group {
  min-width: 0;
  padding: clamp(15px, 1.9vw, 24px);
  border: 1px solid #c9d7cc;
  border-radius: var(--radius);
  background: var(--white);
}
.service-group h3 {
  display: flex;
  align-items: flex-start;
  min-height: 2.6em;
  color: var(--pine-dark);
  font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: -.025em;
}
.service-item { border-top: 1px solid var(--rule); }
.service-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 49px;
  padding-block: 9px;
  list-style: none;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.service-item summary::-webkit-details-marker { display: none; }
.service-item summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--pine);
  font: 600 16px/1 system-ui, sans-serif;
}
.service-item[open] summary::after { content: "−"; background: var(--tint); }
.service-item summary:hover { color: var(--pine); }
.service-detail { padding-bottom: 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.service-types { display: grid; gap: 5px; margin: 8px 0 0; padding-inline-start: 17px; }
.service-types li { overflow-wrap: anywhere; }
.service-types li::marker { color: var(--pine); }
.catalog-inquiry { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 15px; margin-top: 15px; color: var(--muted); font-size: 14px; }

.about { border-bottom: 1px solid var(--rule); }
.delivery-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: clamp(24px, 5vw, 73px); margin-top: 26px; }
.delivery-intro { max-width: 61ch; color: var(--muted); white-space: pre-line; }
.process { counter-reset: project-step; list-style: none; margin: 14px 0 0; padding: 0; }
.process li {
  counter-increment: project-step;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 4px 11px;
  padding-block: 12px;
  border-top: 1px solid var(--rule);
}
.process li::before {
  content: counter(project-step);
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--pine-dark);
  font-size: 13px;
  font-weight: 750;
}
.process h3 { font-size: 18px; }
.process p { grid-column: 2; color: var(--muted); font-size: 14px; }
.delivery-art { overflow: hidden; border-radius: var(--radius); background: var(--night); }
.delivery-art img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }

.contact, .footer { background: var(--night); color: #f9faf6; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; gap: clamp(28px, 6vw, 82px); padding-block: clamp(47px, 7vw, 84px); }
.contact-copy > p { color: #d5e3da; margin-top: 15px; max-width: 44ch; }
.channels { display: flex; gap: 8px 14px; flex-wrap: wrap; margin-top: 18px; }
.channels a { text-decoration: underline; text-underline-offset: 4px; color: #e0ebe1; font-weight: 650; overflow-wrap: anywhere; }
.inquiry-form { padding: clamp(16px, 3vw, 30px); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label { display: block; font-size: 13px; font-weight: 750; margin: 0 0 5px; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fbfcf8;
  border: 1px solid #a9b8ad;
  border-radius: 5px;
}
textarea { display: block; resize: vertical; }
input::placeholder, textarea::placeholder { color: #5e7065; }
.inquiry-form > label { margin-top: 12px; }
.light { color: #fff; background: var(--pine-dark); }
.light:hover { background: #265446; }
.inquiry-form .light { margin-top: 14px; }
.privacy { color: var(--muted); font-size: 12px; margin-top: 8px; }
.notice { margin-bottom: 16px; padding: 9px 12px; border-radius: 5px; font-weight: 750; font-size: 14px; }
.success { color: #1f4e37; background: #deefdf; }
.failure { color: #762331; background: #fae6e8; }
.field-error { display: block; margin-top: 3px; color: #802a35; font-size: 13px; }
[aria-invalid=true] { border-color: #9c3e4a; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 18px; border-top: 1px solid #567267; color: #d4e0d7; font-size: 13px; }
.footer-inner > a:only-child { margin-inline-start: auto; }
.footer a:hover { color: #fff; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .header-inner, .header-actions { gap: 12px; }
  .menu { gap: 16px; }
  .languages a { padding-inline: 5px; }
}

@media (max-width: 780px) {
  :root { --sticky-header-height: 104px; }
  .shell { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; justify-content: space-between; min-height: auto; padding-block: 13px 10px; }
  .menu { order: 3; justify-content: flex-start; flex-basis: 100%; gap: 8px 20px; }
  .menu a { padding-block: 3px; }
  .header-inquiry { display: none; }
  .hero, .delivery-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { gap: 24px; }
  .hero h1 { margin-block: 12px 13px; }
  .hero-art img { aspect-ratio: 16/10; }
  .engagement-list { grid-template-columns: 1fr; }
  .engagement-list > div { padding: 10px 0; }
  .engagement-list > div + div { border-inline-start: 0; border-top: 1px solid var(--rule); }
  .services { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
  .service-group h3 { min-height: auto; margin-bottom: 12px; }
  .delivery-grid { margin-top: 16px; }
}

@media (max-width: 420px) {
  .shell { width: calc(100% - 32px); }
  .header-inner .brand { flex: 1; }
  .languages a { min-height: 32px; padding-inline: 6px; }
  .languages a span { display: none; }
  .hero { padding-top: 37px; }
  .hero h1, .lang-ko .hero h1, .lang-en .hero h1 { font-size: clamp(32px, 9.1vw, 42px); }
  .lang-th .hero h1 { font-size: clamp(32px, 8.8vw, 41px); }
  .hero-actions { margin-top: 18px; }
  .projects, .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .site-header .header-inner {
    opacity: .86;
    transform: translateY(-3px);
    transition: opacity 480ms ease-out, transform 480ms cubic-bezier(.2, .65, .3, 1);
  }
  .site-header.is-scrolled .header-inner {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
