:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5c6877;
  --subtle: #8793a3;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: #dbe4ee;
  --blue: #2678e7;
  --cyan: #13a8d8;
  --green: #19bf7b;
  --amber: #d4881f;
  --dark: #07111b;
  --dark-2: #0d1a26;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.16);
  --font-body: "Noto Sans Thai", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter", "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

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

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

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 228, 238, 0.9);
  color: var(--ink);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 10px clamp(20px, 4vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  z-index: 20;
}

@supports (backdrop-filter: blur(16px)) {
  .site-header {
    backdrop-filter: blur(16px);
  }
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--line);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
}

.brand {
  align-items: center;
  display: inline-flex;
  height: 62px;
  padding: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  width: 180px;
}

.brand:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

.brand img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a {
  color: #354150;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--blue);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 40px;
  padding: 8px;
  width: 40px;
}

.nav-toggle span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 2px;
  margin: 6px 0;
  width: 24px;
}

.hero {
  --hero-drift-x: 0px;
  --hero-drift-y: 0px;
  background: var(--dark);
  color: var(--white);
  min-height: 88vh;
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-shade,
.hero-motion {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  animation: hero-image-drift 18s ease-in-out infinite alternate;
  object-fit: cover;
  object-position: center;
  transform: scale(1.045) translate3d(calc(var(--hero-drift-x) * -0.24), calc(var(--hero-drift-y) * -0.18), 0);
  transform-origin: center;
  transition: transform 260ms ease-out;
  will-change: transform;
}

.hero-motion {
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
  transform: translate3d(calc(var(--hero-drift-x) * 0.36), calc(var(--hero-drift-y) * 0.28), 0);
  transition: transform 260ms ease-out;
  z-index: 1;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 9, 15, 0.96) 0%, rgba(4, 9, 15, 0.86) 46%, rgba(4, 9, 15, 0.36) 100%),
    linear-gradient(0deg, rgba(4, 9, 15, 0.9) 0%, rgba(4, 9, 15, 0.1) 52%);
  z-index: 2;
}

.motion-grid {
  animation: grid-pan 16s linear infinite;
  background-image:
    linear-gradient(rgba(117, 221, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 221, 255, 0.1) 1px, transparent 1px);
  background-size: 86px 86px;
  inset: -12%;
  opacity: 0.24;
  position: absolute;
  transform: perspective(900px) rotateX(62deg) translateY(8%);
  transform-origin: center bottom;
}

.motion-stream {
  animation: stream-flow 7.6s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  background: linear-gradient(90deg, transparent, rgba(117, 221, 255, 0.75), transparent);
  border-radius: 999px;
  filter: blur(1px);
  height: 2px;
  left: -20%;
  position: absolute;
  top: 34%;
  width: 58%;
}

.stream-b {
  animation-delay: -3.1s;
  height: 1px;
  left: -32%;
  opacity: 0.72;
  top: 56%;
  width: 70%;
}

.motion-scan {
  animation: scan-pass 9s ease-in-out infinite;
  background: linear-gradient(180deg, transparent, rgba(117, 221, 255, 0.14), transparent);
  height: 18%;
  left: 0;
  opacity: 0.45;
  position: absolute;
  right: 0;
  top: -24%;
}

.motion-node {
  animation: node-pulse 3.8s ease-in-out infinite;
  background: radial-gradient(circle, rgba(117, 221, 255, 0.95), rgba(19, 168, 216, 0.14) 58%, transparent 70%);
  border-radius: 50%;
  height: 80px;
  position: absolute;
  width: 80px;
}

.node-a {
  right: 24%;
  top: 28%;
}

.node-b {
  animation-delay: -1.4s;
  right: 10%;
  top: 60%;
  transform: scale(0.72);
}

.node-c {
  animation-delay: -2.2s;
  left: 50%;
  top: 44%;
  transform: scale(0.56);
}

.hero-inner {
  align-items: end;
  display: grid;
  gap: clamp(28px, 6vw, 88px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  margin: 0 auto;
  max-width: 1240px;
  min-height: 88vh;
  padding: 126px clamp(20px, 4vw, 42px) 58px;
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 840px;
}

.eyebrow,
.section-kicker {
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #75ddff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.9rem, 5.2vw, 5.35rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 26px;
  max-width: 980px;
}

h2 {
  font-size: clamp(2rem, 4.1vw, 4.1rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 22px;
}

h3 {
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 12px;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.06rem, 1.35vw, 1.22rem);
  line-height: 1.86;
  max-width: 720px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--green);
  color: #06150f;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.button.full {
  width: 100%;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 22px;
}

@supports (backdrop-filter: blur(16px)) {
  .hero-panel {
    backdrop-filter: blur(16px);
  }
}

.hero-panel span {
  color: #75ddff;
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.36rem;
  line-height: 1.26;
  margin-bottom: 22px;
}

.hero-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.hero-panel dl div {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 1fr;
  padding-top: 12px;
}

.hero-panel dt {
  color: #75ddff;
  font-family: var(--font-display);
  font-weight: 800;
}

.hero-panel dd {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  margin: 0;
}

.section-inner {
  margin: 0 auto;
  max-width: 1240px;
  padding: 96px clamp(20px, 4vw, 42px);
}

.intro {
  background: var(--white);
}

.intro-grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intro-visual {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.intro-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.process-grid,
.contact-grid {
  display: grid;
  gap: clamp(32px, 6vw, 88px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.intro p,
.process p,
.contact p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 690px;
}

.section-heading {
  margin-bottom: 38px;
  max-width: 860px;
}

.services {
  background: #eef4f8;
}

.service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 280px;
  padding: 24px;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.78;
  margin-bottom: 0;
}

.card-index {
  color: var(--amber);
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 42px;
}

.process {
  background: var(--dark-2);
  color: var(--white);
}

.process .section-kicker {
  color: #75ddff;
}

.process h2 {
  max-width: 620px;
}

.sticky-heading {
  margin-bottom: 0;
  position: sticky;
  top: 112px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 18px;
  grid-template-columns: 140px 1fr;
  padding: 28px 0;
}

.timeline strong {
  color: #75ddff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.timeline span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.78;
}

.proof {
  background: var(--white);
}

.metric-row {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 64px;
}

.metric-row div {
  padding: 28px;
}

.metric-row div + div {
  border-left: 1px solid var(--line);
}

.metric-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
}

.metric-row span {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.work-panel {
  background: #eef4f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
}

.work-heading-row {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.work-panel h2 {
  max-width: 900px;
}

.project-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.slider-button {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
  width: 44px;
}

.slider-button:hover {
  border-color: rgba(38, 120, 231, 0.45);
  color: var(--blue);
  transform: translateY(-1px);
}

.slider-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.project-slider {
  display: grid;
  gap: 18px;
  grid-auto-columns: minmax(880px, 1fr);
  grid-auto-flow: column;
  margin: 30px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.project-slider::-webkit-scrollbar {
  display: none;
}

.featured-project {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: clamp(22px, 4vw, 40px);
  grid-template-columns: minmax(260px, 0.84fr) minmax(0, 1.16fr);
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
}

.project-media {
  background: #06111d;
  min-height: 100%;
}

.project-image-button {
  background: #06111d;
  border: 0;
  cursor: zoom-in;
  display: block;
  height: 100%;
  padding: 0;
  width: 100%;
}

.project-image-button:focus-visible {
  outline: 3px solid rgba(38, 120, 231, 0.58);
  outline-offset: -3px;
}

.project-media img {
  height: 100%;
  object-fit: contain;
  object-position: center top;
  width: 100%;
}

.project-copy {
  align-self: center;
  padding: clamp(22px, 4vw, 38px) clamp(22px, 4vw, 42px) clamp(22px, 4vw, 38px) 0;
}

.project-label {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.project-copy h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1.22;
  margin-bottom: 16px;
}

.project-copy p {
  color: var(--muted);
  line-height: 1.84;
}

.project-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.project-flow span {
  background: #eef4f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #273442;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 12px;
  text-align: center;
}

.project-points {
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.72;
  margin: 0;
  padding-left: 20px;
}

.work-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}

.work-list span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #2f3b48;
  font-weight: 600;
  line-height: 1.55;
  padding: 14px 16px;
}

.contact {
  background: #dfeaf1;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

label {
  color: #273442;
  display: grid;
  font-size: 0.92rem;
  font-weight: 600;
  gap: 8px;
}

.bot-field {
  height: 0;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.field-optional {
  font-weight: 400;
  opacity: 0.55;
  font-size: 0.85em;
}

input,
textarea {
  border: 1px solid #c8d5df;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
  padding: 13px 14px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--cyan);
  outline: 3px solid rgba(19, 168, 216, 0.16);
}

.captcha-row {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr minmax(112px, 0.42fr);
}

.captcha-question {
  align-items: center;
  background: #eef4f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #273442;
  display: inline-flex;
  font-weight: 700;
  min-height: 48px;
  padding: 12px 14px;
}

.captcha-input {
  min-height: 48px;
}

.form-status {
  color: #b42318;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
  margin: -4px 0 0;
  min-height: 1.4em;
}

.form-status.is-success {
  color: #047857;
}

.image-modal {
  background: transparent;
  border: 0;
  max-height: 94vh;
  max-width: min(94vw, 1120px);
  padding: 0;
}

.image-modal::backdrop {
  background: rgba(4, 9, 15, 0.86);
}

.image-modal[open] {
  display: grid;
  gap: 12px;
}

.image-modal img {
  background: #06111d;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  max-height: 86vh;
  max-width: min(94vw, 1120px);
  object-fit: contain;
}

.image-modal p {
  color: var(--white);
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.modal-close {
  align-items: center;
  background: var(--white);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.65rem;
  height: 42px;
  justify-content: center;
  justify-self: end;
  line-height: 1;
  width: 42px;
}

.site-footer {
  align-items: center;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 26px clamp(20px, 4vw, 72px);
}

.site-footer span:first-child {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
}

@keyframes hero-image-drift {
  0% {
    transform: scale(1.045) translate3d(calc(var(--hero-drift-x) * -0.24), calc(var(--hero-drift-y) * -0.18), 0);
  }

  100% {
    transform: scale(1.075) translate3d(calc((var(--hero-drift-x) * -0.24) - 16px), calc((var(--hero-drift-y) * -0.18) + 10px), 0);
  }
}

@keyframes grid-pan {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 86px 86px, 86px 86px;
  }
}

@keyframes stream-flow {
  0% {
    opacity: 0;
    transform: translate3d(-12%, 0, 0) rotate(9deg) scaleX(0.5);
  }

  18% {
    opacity: 0.88;
  }

  78% {
    opacity: 0.88;
  }

  100% {
    opacity: 0;
    transform: translate3d(178%, -34px, 0) rotate(9deg) scaleX(1);
  }
}

@keyframes scan-pass {
  0%,
  20% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(0, 760%, 0);
  }
}

@keyframes node-pulse {
  0%,
  100% {
    opacity: 0.18;
    filter: blur(3px);
  }

  45% {
    opacity: 0.68;
    filter: blur(0);
  }
}

@media (max-width: 1040px) {
  .hero-inner,
  .intro-grid,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

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

  .work-heading-row {
    align-items: start;
    flex-direction: column;
  }

  .project-controls {
    margin-bottom: 0;
  }

  .project-slider {
    grid-auto-columns: minmax(100%, 1fr);
  }

  .featured-project {
    grid-template-columns: 1fr;
  }

  .project-media img {
    max-height: 560px;
  }

  .project-copy {
    padding: 0 clamp(22px, 4vw, 34px) clamp(24px, 4vw, 36px);
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 10px 18px;
  }

  .brand {
    height: 54px;
    width: 156px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 8px 18px 14px;
    position: absolute;
    right: 0;
    top: 74px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    width: 100%;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero,
  .hero-inner {
    min-height: 86vh;
  }

  .hero-inner {
    padding: 118px 20px 50px;
  }

  .hero-image {
    animation-duration: 22s;
    object-position: 58% center;
    transform: scale(1.06) translate3d(calc(var(--hero-drift-x) * -0.12), calc(var(--hero-drift-y) * -0.1), 0);
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 9, 15, 0.96), rgba(4, 9, 15, 0.72)),
      linear-gradient(0deg, rgba(4, 9, 15, 0.88), rgba(4, 9, 15, 0.24));
  }

  .hero-motion {
    opacity: 0.46;
  }

  .motion-grid {
    background-size: 64px 64px;
    opacity: 0.18;
  }

  .motion-stream {
    top: 38%;
    width: 78%;
  }

  .stream-b {
    top: 61%;
  }

  .node-a {
    right: -4%;
    top: 30%;
  }

  .node-b,
  .node-c {
    display: none;
  }

  h1 {
    font-size: clamp(2.34rem, 9.6vw, 3.8rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.72rem, 7.8vw, 2.72rem);
    line-height: 1.22;
  }

  h3 {
    font-size: 1.06rem;
  }

  .hero-lead,
  .intro p,
  .process p,
  .contact p {
    font-size: 1rem;
    line-height: 1.84;
  }

  .hero-panel {
    display: none;
  }

  .section-inner {
    padding: 56px 20px;
  }

  .service-grid,
  .work-list,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .featured-project {
    margin: 0;
  }

  .project-media img {
    max-height: 430px;
  }

  .project-copy {
    padding: clamp(18px, 4vw, 28px);
  }

  .project-flow {
    gap: 6px;
  }

  .service-card {
    min-height: auto;
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }

  .metric-row {
    margin-bottom: 40px;
  }

  .metric-row div {
    padding: 20px 16px;
  }

  .metric-row div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    gap: 10px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .brand {
    height: 46px;
    width: 136px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
    line-height: 1.1;
  }

  h2 {
    font-size: clamp(1.5rem, 8.5vw, 2.1rem);
    line-height: 1.24;
  }

  .hero,
  .hero-inner {
    min-height: 88vh;
  }

  .hero-inner {
    padding: 100px 16px 44px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .section-inner {
    padding: 48px 16px;
  }

  .contact-form {
    padding: 18px 16px;
  }

  .work-panel {
    padding: 18px 16px;
  }

  .project-copy {
    padding: 16px;
  }

  .project-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .project-flow span {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .work-list {
    grid-template-columns: 1fr;
  }

  .metric-row strong {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .metric-row div {
    padding: 16px 14px;
  }

  .timeline li {
    padding: 20px 0;
  }

  .service-card {
    padding: 18px;
  }

  .project-media img {
    max-height: 280px;
  }

  .image-modal {
    max-width: 100vw;
    max-height: 100vh;
  }

  .image-modal img {
    max-width: 100vw;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image,
  .motion-grid,
  .motion-stream,
  .motion-scan,
  .motion-node {
    animation: none;
  }

  .hero,
  .hero-image,
  .hero-motion {
    --hero-drift-x: 0px;
    --hero-drift-y: 0px;
    transform: none;
  }
}

/* ── Language switcher ────────────────────────────────────── */
.lang-switcher {
  position: relative;
  margin-left: 8px;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  color: #111;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lang-btn:hover {
  background: rgba(0, 0, 0, 0.14);
  border-color: rgba(0, 0, 0, 0.28);
  color: #000;
}

/* เมื่อ header scroll แล้วพื้นหลังเข้ม ให้กลับเป็นสีขาว */
.site-header.is-scrolled .lang-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

.site-header.is-scrolled .lang-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.lang-globe {
  font-size: 0.9rem;
  line-height: 1;
}

.lang-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.lang-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  background: #0e1825;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  list-style: none;
  margin: 0;
  padding: 4px;
  display: none;
  z-index: 200;
}

.lang-dropdown.is-open {
  display: block;
}

.lang-dropdown li {
  margin: 0;
}

.lang-dropdown button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-dropdown button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.lang-dropdown button.is-active {
  background: rgba(19, 168, 216, 0.15);
  color: #13a8d8;
  font-weight: 600;
}

/* Mobile: แสดงใน nav ด้วย */
@media (max-width: 767px) {
  .lang-switcher {
    margin-left: auto;
    margin-right: 52px; /* เว้นที่ให้ hamburger */
  }
}
