@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Noto+Sans+Thai:wght@400;500;600&display=swap');

:root {
  --ink: #20242a;
  --muted: #6d737a;
  --line: #dde0e3;
  --paper: #ffffff;
  --soft: #f4f5f6;
  --blue: #5277a6;
  --blue-dark: #365b88;
  --orange: #f7941d;
  --max: 1180px;
  --radius: 2px;
  --shadow: 0 18px 50px rgba(22, 31, 43, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.en {
  display: block;
  margin-top: .28em;
  color: var(--muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: .76em;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.01em;
}
h1 .en, h2 .en { margin-top: .2em; font-size: .42em; letter-spacing: -.02em; }
h3 .en { font-size: .68em; }
.section-dark .en, .site-footer .en { color: #aeb3b8; }
.button .en, .nav-links .en { display: inline; margin: 0; color: inherit; font-size: inherit; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 8px 14px; background: var(--ink); color: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 16px; color: var(--blue-dark); font-size: .76rem;
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; margin: 0 10px 3px 0; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; font-weight: 500; }
h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; }
.lead { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.muted { color: var(--muted); }
.section { padding: clamp(88px, 12vw, 150px) 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 52px; }
.section-head h2 { max-width: 680px; margin-bottom: 0; }
.section-head .lead { max-width: 430px; margin-bottom: 4px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 88px;
  background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(221,224,227,.8);
  backdrop-filter: blur(16px); transition: height .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { height: 74px; box-shadow: 0 8px 30px rgba(20,30,40,.06); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { width: 174px; height: 70px; overflow: hidden; flex: 0 0 auto; }
.brand img { width: 174px; height: 132px; object-fit: contain; object-position: top; }
.site-header.scrolled .brand { height: 62px; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.nav-links a { position: relative; font-size: .9rem; color: #50565d; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px;
  background: var(--orange); transition: right .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 24px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff !important; font-size: .9rem; font-weight: 600;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.nav-cta { min-height: 42px; padding-inline: 18px; }
.button:hover, .nav-cta:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); }
.button-light { background: #fff; border-color: #fff; color: var(--ink) !important; }
.button-ghost { background: transparent; color: var(--ink) !important; }
.button-ghost:hover { color: #fff !important; }
.button::after { content: "\2197"; font-size: 1rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.menu-toggle span { display: block; height: 1px; margin: 6px 0; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

.hero { min-height: 100svh; padding-top: 88px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); }
.hero-copy { display: flex; align-items: end; padding: 7vw max(24px, calc((100vw - var(--max))/2)) 9vw; }
.hero-copy-inner { max-width: 680px; }
.hero h1 { margin: 0 0 26px; font-size: clamp(2.8rem, 6vw, 5.5rem); }
.hero h1 span { display: block; color: var(--blue); }
.hero .lead { max-width: 580px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; min-height: 560px; overflow: hidden; background: #ddd; }
.hero-media img { height: 100%; object-fit: cover; transition: transform 1.1s ease; }
.hero-media:hover img { transform: scale(1.025); }
.hero-stamp {
  position: absolute; left: 0; bottom: 0; min-width: 190px; padding: 24px 30px;
  background: var(--orange); color: #191919;
}
.hero-stamp strong { display: block; font-size: 2rem; line-height: 1; }
.hero-stamp span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--blue); font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; font-weight: 500; }
.stat span { color: var(--muted); font-size: .88rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { min-height: 380px; padding: 42px 34px; background: #fff; display: flex; flex-direction: column; }
.service-no { color: var(--orange); font-size: .76rem; font-weight: 700; letter-spacing: .12em; }
.service-card h3 { margin-top: auto; font-size: 1.7rem; }
.service-card p { color: var(--muted); margin-bottom: 0; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card { position: relative; min-height: 500px; overflow: hidden; background: #ddd; }
.project-card:nth-child(2) { min-height: 500px; align-self: auto; }
.project-card img { height: 100%; object-fit: cover; filter: saturate(.82); transition: filter .35s ease, transform .7s ease; }
.project-card:hover img { filter: saturate(1); transform: scale(1.025); }
.project-caption { position: absolute; inset: auto 0 0; padding: 60px 30px 26px; color: #fff; background: linear-gradient(transparent, rgba(17,22,28,.78)); }
.project-caption small { display: block; opacity: .75; letter-spacing: .1em; text-transform: uppercase; }
.project-caption h3 { margin: 4px 0 0; font-size: 1.4rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; }
.split-media img { height: 100%; object-fit: cover; }
.split-copy { display: flex; align-items: center; padding: clamp(54px, 8vw, 110px); background: var(--soft); }
.split-copy-inner { max-width: 520px; }
.split-copy h2 { margin-bottom: 28px; }
.check-list { margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.check-list li::before { content: ""; width: 9px; height: 9px; margin-top: 9px; background: var(--orange); transform: rotate(45deg); flex: 0 0 auto; }

.cta-block { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-block h2 { max-width: 780px; margin-bottom: 0; }

.page-hero { padding: 210px 0 100px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 960px; margin-bottom: 28px; font-size: clamp(3rem, 7vw, 6rem); }
.page-hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 60px; }
.page-index { color: #a2a7ad; font-size: clamp(5rem, 13vw, 11rem); line-height: .75; text-align: right; font-weight: 300; letter-spacing: -.06em; }
.accent-word { color: var(--blue); }

.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 10vw, 150px); align-items: start; }
.year-mark { position: sticky; top: 130px; color: var(--blue); font-size: clamp(5rem, 13vw, 10rem); line-height: .8; letter-spacing: -.07em; }
.story-copy h2 { margin-bottom: 34px; }
.story-copy p { color: var(--muted); font-size: 1.08rem; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value-card { padding: 34px; border-top: 3px solid var(--blue); background: #fff; }
.value-card:nth-child(2) { border-color: var(--orange); }
.value-card p { color: var(--muted); margin-bottom: 0; }

.service-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 9vw, 130px); align-items: center; padding: 70px 0; border-top: 1px solid var(--line); }
.service-feature:nth-child(even) .feature-media { order: 2; }
.feature-media { height: 520px; overflow: hidden; }
.feature-media img { height: 100%; object-fit: cover; }
.feature-copy h2 { margin-bottom: 24px; }
.feature-copy p { color: var(--muted); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.feature-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: #3d4248; }
.process-card { min-height: 330px; padding: 34px 28px; background: var(--ink); }
.process-card strong { display: block; margin-bottom: 90px; color: var(--orange); font-size: .8rem; letter-spacing: .1em; }
.process-card h3 { color: #fff; }
.process-card p { color: #aeb3b8; font-size: .92rem; }

.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 10vw, 140px); }
.contact-list { margin: 38px 0 0; border-top: 1px solid var(--line); }
.contact-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-row small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.contact-row a { font-size: 1.1rem; }
.contact-row a:hover { color: var(--blue-dark); }
.contact-form { padding: clamp(34px, 5vw, 62px); background: var(--soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field-full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; font-size: .82rem; font-weight: 600; }
input, textarea, select {
  width: 100%; border: 0; border-bottom: 1px solid #bfc4c9; border-radius: 0;
  padding: 12px 2px; background: transparent; color: var(--ink); outline: none;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.form-actions { margin-top: 30px; display: flex; align-items: center; gap: 18px; }
.form-status { margin: 0; color: var(--blue-dark); font-size: .9rem; }
.map-panel { min-height: 420px; background: #e7e8e9; display: grid; place-items: center; position: relative; overflow: hidden; }
.map-panel::before, .map-panel::after { content: ""; position: absolute; inset: 50% -10%; height: 1px; background: #cfd2d5; transform: rotate(-12deg); }
.map-panel::after { transform: rotate(14deg); }
.map-label { z-index: 1; padding: 28px; background: rgba(255,255,255,.9); text-align: center; box-shadow: var(--shadow); }
.map-label strong { display: block; font-size: 1.35rem; }

.site-footer { background: #171a1f; color: #fff; padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 70px; padding-bottom: 60px; }
.footer-brand { max-width: 360px; }
.footer-mark { width: 54px; height: 54px; background: linear-gradient(135deg,var(--blue) 0 50%,var(--orange) 50%); margin-bottom: 24px; clip-path: polygon(50% 0,100% 50%,100% 100%,0 100%,0 50%); }
.footer-brand p, .footer-col a, .footer-col span { color: #aeb3b8; }
.footer-col h3 { font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a, .footer-col span { display: block; margin: 8px 0; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 24px; border-top: 1px solid #33383e; color: #7f858b; font-size: .78rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 940px) {
  .site-header, .site-header.scrolled { height: 74px; }
  .brand, .site-header.scrolled .brand { width: 150px; height: 62px; }
  .brand img { width: 150px; height: 114px; }
  .menu-toggle { display: block; z-index: 2; }
  .menu-open .menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .menu-open .site-header { height: 100svh; background: #fff; }
  .menu-open .nav-wrap { height: 74px; }
  .nav-links { position: absolute; top: 74px; left: 0; right: 0; min-height: calc(100svh - 74px); display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 30px 24px; background: #fff; transform: translateX(100%); transition: transform .3s ease; }
  .menu-open .nav-links { transform: translateX(0); }
  .nav-links a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav-cta { margin-top: 22px; }
  .hero { grid-template-columns: 1fr; padding-top: 74px; }
  .hero-copy { padding: 90px 24px 70px; }
  .hero-media { height: 65vw; min-height: 460px; }
  .section-head, .cta-block { align-items: flex-start; flex-direction: column; }
  .service-grid, .values-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 300px; }
  .project-grid, .split, .story-grid, .service-feature, .contact-layout { grid-template-columns: 1fr; }
  .project-card, .project-card:nth-child(2) { min-height: 520px; }
  .split-media { min-height: 560px; }
  .year-mark { position: static; }
  .service-feature:nth-child(even) .feature-media { order: 0; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-index { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 36px), var(--max)); }
  h1 { font-size: clamp(2.75rem, 15vw, 4.3rem); }
  .section { padding: 78px 0; }
  .hero-copy { padding-inline: 18px; }
  .hero-media { min-height: 420px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .project-card, .project-card:nth-child(2) { min-height: 430px; }
  .split-media { min-height: 420px; }
  .split-copy { padding: 56px 24px; }
  .feature-media { height: 390px; }
  .feature-list, .process-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 260px; }
  .process-card strong { margin-bottom: 55px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
