:root {
  --ink: #15191c;
  --muted: #687176;
  --paper: #f4f2ec;
  --surface: #ffffff;
  --line: rgba(21, 25, 28, 0.14);
  --steel: #26343a;
  --steel-soft: #e4e8e7;
  --accent: #d8a11f;
  --accent-dark: #8a620b;
  --white: #ffffff;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: var(--header-height);
  padding: 12px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: linear-gradient(to bottom, rgba(9, 13, 15, 0.78), rgba(9, 13, 15, 0.16));
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-open {
  color: var(--ink);
  background: rgba(244, 242, 236, 0.96);
  box-shadow: 0 12px 30px rgba(20, 24, 24, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #11171b;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.18;
}

.brand strong {
  font-size: 1rem;
  font-weight: 900;
}

.brand small {
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.72;
}

.main-nav {
  justify-self: end;
  display: flex;
  gap: clamp(16px, 2.4vw, 30px);
  color: currentColor;
  font-size: 0.92rem;
  font-weight: 800;
}

.main-nav a {
  opacity: 0.82;
  transition: color 160ms ease, opacity 160ms ease;
}

.main-nav a:hover {
  color: var(--accent);
  opacity: 1;
}

.header-call {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  color: #151000;
  background: var(--accent);
  font-size: 0.88rem;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease;
}

.header-call:hover {
  transform: translateY(-2px);
  background: #f0bd36;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: currentColor;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 7px 5px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #11171b;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  transform: translateY(var(--parallax, 0));
  transition: transform 80ms linear;
}

.hero-media img {
  filter: saturate(0.9) contrast(1.05);
  transform: scale(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 13, 15, 0.92) 0%, rgba(8, 13, 15, 0.7) 42%, rgba(8, 13, 15, 0.2) 100%),
    linear-gradient(to top, rgba(8, 13, 15, 0.64), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 112px);
  padding-top: var(--header-height);
}

.eyebrow,
.section-kicker {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3.8rem, 7.5vw, 6.4rem);
  line-height: 1.14;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h1 .name-line {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.18em;
}

h1 .name-line span {
  display: inline-block;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.22;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #161100;
  background: var(--accent);
}

.btn.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: 112px;
  z-index: 2;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 720px;
}

.hero-facts span {
  border-left: 3px solid var(--accent);
  padding: 9px 12px;
  background: rgba(9, 13, 15, 0.62);
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.intro,
.capability,
.equipment,
.leader,
.quality,
.contact {
  display: grid;
  grid-template-columns: minmax(160px, 0.44fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(78px, 10vw, 132px) clamp(18px, 6vw, 92px);
}

.section-label {
  color: var(--accent-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.intro-copy p,
.capability-copy p,
.equipment-copy p,
.leader-copy p,
.quality-copy p,
.contact-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.capability,
.quality {
  align-items: center;
  background: var(--surface);
}

.capability-image,
.quality-image {
  min-height: 520px;
  overflow: hidden;
}

.capability-copy,
.quality-copy {
  align-self: center;
}

.services,
.process,
.projects {
  padding: clamp(76px, 10vw, 130px) clamp(18px, 6vw, 92px);
}

.section-heading {
  max-width: 880px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-item {
  min-height: 270px;
  padding: clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
  transition: background 180ms ease, transform 180ms ease;
}

.service-item:hover {
  background: var(--surface);
  transform: translateY(-4px);
}

.service-item span,
.process-step span,
.project-item span {
  display: block;
  margin-bottom: 28px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-item p,
.process-step p,
.project-item p {
  color: var(--muted);
}

.equipment {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  background: var(--steel);
  color: var(--white);
}

.equipment-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.equipment-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 230px 230px;
  gap: 12px;
}

.equipment-strip img:first-child {
  grid-row: span 2;
}

.leader {
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  background: var(--surface);
}

.leader-photo {
  align-self: start;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--steel-soft);
}

.leader-photo img {
  object-position: center top;
}

.experience-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.experience-list li {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--steel);
  font-weight: 700;
}

.process {
  background: var(--paper);
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.process-step {
  min-height: 240px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper);
}

.project-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.project-item {
  display: grid;
  grid-template-columns: minmax(240px, 0.54fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
  padding: clamp(18px, 3vw, 34px);
  background: var(--surface);
}

.project-item img {
  aspect-ratio: 16 / 10;
}

.contact {
  align-items: start;
  background: #10171b;
  color: var(--white);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-panel {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.contact-panel a,
.contact-panel address {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
  font-style: normal;
}

.contact-panel span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-panel strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
  line-height: 1.35;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 92px) 96px;
  color: rgba(255, 255, 255, 0.68);
  background: #080d0f;
  font-size: 0.9rem;
}

.floating-contact {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 60;
  display: flex;
  gap: 10px;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.26));
}

.floating-contact a {
  display: grid;
  min-width: 148px;
  min-height: 58px;
  align-content: center;
  gap: 1px;
  padding: 10px 16px;
  color: #101410;
  background: var(--accent);
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease;
}

.floating-contact a:hover {
  transform: translateY(-3px);
  background: #f0bd36;
}

.floating-contact .float-line {
  color: var(--white);
  background: #08a045;
}

.floating-contact .float-line:hover {
  background: #0fba55;
}

.floating-contact span {
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.78;
}

.floating-contact strong {
  font-size: 0.95rem;
  line-height: 1.24;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .nav-toggle {
    justify-self: end;
    display: block;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px clamp(18px, 4vw, 54px) 20px;
    background: rgba(244, 242, 236, 0.98);
    color: var(--ink);
    box-shadow: 0 20px 30px rgba(20, 24, 24, 0.12);
  }

  .site-header.nav-open .main-nav {
    display: grid;
  }

  .main-nav a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

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

@media (max-width: 760px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    gap: 12px;
    padding: 10px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small,
  .header-call {
    display: none;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 3.65rem);
    line-height: 1.12;
  }

  h1 .name-line {
    display: block;
  }

  h1 .name-line span {
    display: block;
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.25rem);
  }

  .hero-facts {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 2;
    justify-content: flex-start;
    padding: 0 16px 22px;
  }

  .intro,
  .capability,
  .equipment,
  .leader,
  .quality,
  .contact {
    grid-template-columns: 1fr;
    padding: 68px 16px;
  }

  .services,
  .process,
  .projects {
    padding: 68px 16px;
  }

  .capability-image,
  .quality-image {
    min-height: 340px;
  }

  .service-grid,
  .process-flow {
    grid-template-columns: 1fr;
  }

  .service-item,
  .process-step {
    min-height: 0;
  }

  .equipment-strip {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 220px);
  }

  .equipment-strip img:first-child {
    grid-row: auto;
  }

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

  .site-footer {
    display: grid;
    padding: 24px 16px 104px;
  }

  .floating-contact {
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .floating-contact a {
    min-width: 0;
    min-height: 56px;
    padding: 9px 12px;
    text-align: center;
  }

  .floating-contact strong {
    font-size: 0.88rem;
  }
}
