@font-face {
  font-family: "KAN Noto Sans";
  src: url('/assets/fonts/NotoSans-Variable.ttf') format('truetype');
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "KAN Noto Sans Thai";
  src: url('/assets/fonts/NotoSansThai-Variable.ttf') format('truetype');
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --blue: #00a0e9;
  --blue-dark: #0077b8;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5e7;
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --deep: #101418;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-soft: 0 12px 34px rgba(16, 36, 48, .09);
  --font-latin: "KAN Noto Sans", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-thai: "KAN Noto Sans Thai", "Noto Sans Thai", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-thai);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--font-latin); }
button, input, select, textarea { font: inherit; }
.eyebrow, .service-label, .visual-index, .number { font-family: var(--font-latin); }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(0, 160, 233, .45); outline-offset: 4px; }
.not-found {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 100vh;
  max-width: 720px;
  margin: auto;
  padding: 48px 28px;
}
.not-found-brand {
  display: block;
  width: 150px;
  height: 64px;
  margin-bottom: 54px;
  overflow: hidden;
}
.not-found-brand img {
  display: block;
  width: 150px;
  max-width: none;
  transform: translateY(-12px);
}
.not-found h1 { margin: 0 0 14px; font-size: clamp(34px, 6vw, 58px); line-height: 1.12; }
.not-found p { margin: 4px 0; color: var(--muted); }
.not-found-action {
  margin-top: 30px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  font-weight: 720;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -70px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #111;
  color: #fff;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(229, 229, 231, .82);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px) saturate(150%);
}
.header-inner {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  min-height: 78px;
  max-width: 1296px;
  margin: auto;
  padding: 10px 28px;
}
.brand {
  display: block;
  width: 146px;
  height: 56px;
  overflow: hidden;
}
.brand img {
  display: block;
  width: 146px;
  height: auto;
  max-width: none;
  transform: translateY(-12px);
}
.primary-nav { display: flex; justify-content: center; gap: 34px; }
.primary-nav a {
  position: relative;
  padding: 12px 0;
  color: #3f3f44;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}
.primary-nav a:not(.mobile-quote)::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  content: '';
  transform: scaleX(0);
  transition: transform .2s ease;
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
}
.language-switch button {
  min-width: 38px;
  height: 32px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #7d7d82;
  font: 650 11px/1 KAN, sans-serif;
  cursor: pointer;
}
.language-switch button.active { background: #111; color: #fff; }
.header-quote, .mobile-quote {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
  transition: background .2s ease, transform .2s ease;
}
.header-quote:hover { background: var(--blue-dark); transform: translateY(-1px); }
.mobile-quote, .nav-toggle { display: none; }

main { overflow: clip; }
section[id] { scroll-margin-top: 92px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  gap: 58px;
  align-items: center;
  min-height: 730px;
  max-width: 1380px;
  margin: auto;
  padding: 70px 28px 80px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .14em;
}
.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(46px, 5.25vw, 74px);
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: -.045em;
}
html[lang="th"] .hero h1 { font-size: clamp(44px, 4.65vw, 66px); }
.hero-subtitle {
  max-width: 640px;
  margin: 26px 0 0;
  color: #2f3034;
  font-size: clamp(19px, 1.55vw, 23px);
  font-weight: 650;
  line-height: 1.45;
}
.lead {
  max-width: 630px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.hero-actions a {
  min-width: 168px;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 720;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero-actions a:hover { transform: translateY(-1px); }
.hero-actions .primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 160, 233, .16);
}
.hero-actions .primary:hover { background: var(--blue-dark); }
.hero-actions .secondary { border: 1px solid var(--line); background: #fff; }
.hero-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #dfe9ee;
  box-shadow: var(--shadow-soft);
}
.hero-visual > img {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: 61% center;
  transition: transform .7s cubic-bezier(.2, .75, .2, 1);
}
.hero-visual:hover > img { transform: scale(1.018); }
.visual-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius-sm);
  background: rgba(14, 18, 21, .91);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
  backdrop-filter: blur(16px);
}
.visual-index { color: #7fd6fa; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.visual-caption > div { display: grid; }
.visual-caption b { font-size: 15px; line-height: 1.25; }
.visual-caption small { margin-top: 3px; color: #aeb8bd; font-size: 12px; }

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 70px;
  border-block: 1px solid var(--line);
  color: #6f6f75;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .06em;
}
.trust-strip i { width: 5px; height: 5px; flex: 0 0 5px; background: var(--blue); transform: rotate(45deg); }
.section { max-width: 1240px; margin: auto; padding: 118px 28px; }
.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  align-items: end;
  gap: 50px;
  margin-bottom: 46px;
}
.section-head.compact { grid-template-columns: 1fr; }
.section-head h2, .contact h2, .engineering-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.14;
  letter-spacing: -.035em;
}
.section-head > p { margin: 0; color: var(--muted); font-size: 16px; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-2px); border-color: #9edcf6; box-shadow: var(--shadow-soft); }
.service-card figure { aspect-ratio: 3 / 2; margin: 0; overflow: hidden; background: #e9eff2; }
.service-card figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .75, .2, 1);
}
.service-card:hover figure img { transform: scale(1.025); }
.service-content { position: relative; padding: 30px; }
.service-content .number {
  position: absolute;
  top: -23px;
  right: 26px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid #fff;
  border-radius: var(--radius-xs);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 780;
}
.service-label { margin: 0 0 8px; color: var(--blue-dark); font-size: 11px; font-weight: 780; letter-spacing: .11em; }
.service-card h3 { margin: 0; font-size: 26px; line-height: 1.25; }
.service-card .service-content > p:last-of-type { margin: 18px 0 0; color: var(--muted); }
.service-primary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  min-height: 430px;
}
.service-primary figure { aspect-ratio: auto; min-height: 430px; }
.service-primary .service-content { display: flex; flex-direction: column; justify-content: center; padding: 46px; }
.service-primary .number { top: 24px; right: 24px; }
.service-primary h3 { font-size: clamp(30px, 3vw, 42px); }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.service-tags span { padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-xs); color: #55565a; font-size: 10px; font-weight: 750; letter-spacing: .07em; }
.graphidesk-card .number { background: #111; }
.graphidesk-lockup {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 64px 18px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.graphidesk-lockup img { width: 150px; height: auto; }
.graphidesk-lockup small { color: var(--muted); font-size: 11px; font-weight: 650; text-align: right; }

.capabilities { background: var(--canvas); }
.capabilities-inner { max-width: 1184px; margin: auto; padding: 112px 0; }
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.capability-grid li {
  display: grid;
  min-height: 200px;
  padding: 26px 24px;
  border: 1px solid #d9d9dc;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.capability-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.capability-icon {
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 1px solid #cfd2d4;
  border-radius: var(--radius-xs);
  color: #27323a;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.7;
}
.capability-grid span { color: var(--blue-dark); font-size: 12px; font-weight: 780; }
.capability-grid b { align-self: end; font-size: 19px; line-height: 1.3; }
.capability-grid small { margin-top: 5px; color: #8a8a8f; font-size: 11px; }
.capability-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 38px;
}
.capability-cta b { font-size: 20px; }
.capability-cta p { margin: 5px 0 0; color: var(--muted); }
.capability-cta a { flex: 0 0 auto; padding: 13px 20px; border-radius: var(--radius-sm); background: #111; color: #fff; font-weight: 700; }

.engineering-feature { padding: 110px 28px; background: var(--deep); color: #fff; }
.engineering-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 72px;
  align-items: center;
  max-width: 1240px;
  margin: auto;
}
.engineering-feature figure { min-height: 520px; margin: 0; overflow: hidden; border-radius: var(--radius-md); background: #252b30; }
.engineering-feature figure img { display: block; width: 100%; height: 520px; object-fit: cover; }
.engineering-copy .eyebrow { color: #75d0f6; }
.engineering-copy > p:not(.eyebrow) { margin: 24px 0 0; color: #bbc2c7; font-size: 16px; }
.engineering-copy ul { margin: 34px 0 0; padding: 0; list-style: none; }
.engineering-copy li { position: relative; padding: 15px 0 15px 28px; border-top: 1px solid #30373c; font-weight: 620; }
.engineering-copy li::before { position: absolute; top: 23px; left: 2px; width: 7px; height: 7px; background: var(--blue); content: ''; transform: rotate(45deg); }

.workflow { max-width: none; background: #fff; }
.workflow > .section-head, .workflow > ol { max-width: 1184px; margin-inline: auto; }
.workflow ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.workflow li { position: relative; min-height: 180px; padding: 28px 40px 28px 24px; border-right: 1px solid var(--line); }
.workflow li:last-child { border-right: 0; }
.workflow li:not(:last-child)::after { position: absolute; top: 31px; right: 14px; color: #9ca1a5; content: '\2192'; font-size: 18px; }
.workflow li > span { display: block; margin-bottom: 46px; color: var(--blue); font-size: 13px; font-weight: 780; }
.workflow li b { font-size: 17px; }

.contact {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  align-items: center;
  max-width: 1184px;
  margin: 0 auto 118px;
  padding: 56px;
  border-radius: var(--radius-md);
  background: #111519;
  color: #fff;
}
.contact .eyebrow { color: #75d0f6; }
.contact > div > p:last-child { max-width: 640px; margin: 24px 0 0; color: #b9c0c5; }
.contact-actions { display: grid; gap: 12px; }
.contact-actions a {
  display: grid;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  transition: border-color .2s ease, background .2s ease;
}
.contact-actions a:hover { border-color: rgba(117, 208, 246, .72); background: rgba(255, 255, 255, .07); }
.contact-actions b { margin-bottom: 3px; color: #75d0f6; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.contact-actions span { font-size: 17px; font-weight: 720; }
.contact-actions small { margin-top: 2px; color: #aeb7bd; }

footer {
  padding: 44px max(28px, calc((100vw - 1184px) / 2));
  border-top: 1px solid var(--line);
  color: #737378;
  font-size: 12px;
}
.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr); gap: 56px; }
.footer-identity { max-width: 720px; }
.footer-brand { width: 130px; height: 50px; overflow: hidden; }
.footer-brand img { display: block; width: 130px; height: auto; max-width: none; transform: translateY(-10px); }
footer b { color: #35363a; font-size: 12px; }
footer p { margin: 7px 0 0; }
footer a:hover { color: var(--blue-dark); }
.footer-company { margin-bottom: 18px; color: #35363a; font-weight: 700; }
.footer-meta { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); text-align: right; }

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1220px) {
  .capabilities-inner { padding-inline: 28px; }
}

@media (max-width: 1040px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    z-index: 5;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-header.nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
  .primary-nav a { padding: 13px 14px; border-radius: var(--radius-xs); }
  .primary-nav a:hover { background: var(--canvas); }
  .primary-nav a::after { display: none; }
  .primary-nav .mobile-quote { display: block; margin-top: 6px; color: #fff; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 1.5px; margin: 2px 0; background: #202124; transition: transform .2s ease, opacity .2s ease; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; gap: 46px; padding-top: 62px; }
  .hero-copy { max-width: 800px; }
  .hero-visual { min-height: 510px; }
  .hero-visual > img { height: 510px; }
  .section-head, .contact { grid-template-columns: 1fr; }
  .engineering-inner { grid-template-columns: 1fr; gap: 44px; }
  .engineering-feature figure, .engineering-feature figure img { height: 480px; min-height: 480px; }
  .contact { margin: 0 28px 90px; }
  .footer-meta { text-align: left; }
}

@media (max-width: 760px) {
  .header-quote { display: none; }
  .hero { padding-inline: 20px; }
  .hero h1 { font-size: clamp(42px, 11.5vw, 60px); }
  .hero-subtitle { font-size: 19px; }
  .trust-strip { overflow-x: auto; justify-content: flex-start; padding: 0 22px; white-space: nowrap; scrollbar-width: none; }
  .trust-strip::-webkit-scrollbar { display: none; }
  .section { padding: 86px 20px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 34px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-primary { grid-column: auto; display: block; min-height: 0; }
  .service-primary figure { min-height: 0; aspect-ratio: 3 / 2; }
  .service-primary .service-content { padding: 30px; }
  .service-primary .number { top: -23px; right: 26px; }
  .capabilities-inner { padding: 84px 20px; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-grid li { min-height: 180px; }
  .capability-cta { align-items: flex-start; flex-direction: column; }
  .engineering-feature { padding: 84px 20px; }
  .engineering-feature figure, .engineering-feature figure img { height: 390px; min-height: 390px; }
  .workflow ol { grid-template-columns: 1fr 1fr; }
  .workflow li:nth-child(2) { border-right: 0; }
  .workflow li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workflow li::after { display: none; }
  .contact { gap: 36px; margin: 0 20px 76px; padding: 36px 28px; }
}

@media (max-width: 520px) {
  .header-inner { min-height: 70px; padding-inline: 16px; }
  .brand { width: 118px; height: 46px; }
  .brand img { width: 118px; transform: translateY(-9px); }
  .header-actions { gap: 7px; }
  .language-switch button { min-width: 34px; height: 30px; }
  .nav-toggle { width: 38px; height: 38px; }
  .primary-nav { right: 12px; left: 12px; }
  .hero { min-height: 0; padding: 48px 20px 66px; }
  .hero h1 { font-size: 42px; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; }
  .hero-visual { min-height: 410px; border-radius: var(--radius-md); }
  .hero-visual > img { height: 410px; object-position: 67% center; }
  .visual-caption { grid-template-columns: 1fr; gap: 10px; padding: 15px; }
  .visual-index { display: none; }
  .service-card { border-radius: var(--radius-md); }
  .service-content { padding: 26px 24px 28px; }
  .service-card h3 { font-size: 23px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid li { min-height: 150px; }
  .engineering-feature figure, .engineering-feature figure img { height: 300px; min-height: 300px; }
  .engineering-copy h2, .contact h2, .section-head h2 { font-size: 34px; }
  .workflow ol { grid-template-columns: 1fr; }
  .workflow li { min-height: 140px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow li:last-child { border-bottom: 0; }
  .workflow li > span { margin-bottom: 28px; }
  .graphidesk-lockup { align-items: flex-start; flex-direction: column; gap: 8px; margin-right: 54px; }
  .graphidesk-lockup small { text-align: left; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  footer { padding: 38px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}
