:root {
  --ink: #172121;
  --muted: #5f6d68;
  --paper: #f7f8f5;
  --white: #ffffff;
  --teal: #087f7a;
  --teal-dark: #075f5d;
  --coral: #d76d57;
  --line: #d9e1dc;
  --shadow: 0 18px 50px rgba(22, 33, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

body::selection {
  color: var(--white);
  background: var(--teal);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  color: var(--white);
  background: rgba(23, 33, 33, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 174px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.language-switcher button {
  min-height: 36px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.84);
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button:last-child {
  border-right: 0;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--white);
}

.hero {
  min-height: 78vh;
  padding: 130px 28px 70px;
  display: flex;
  align-items: center;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(12, 21, 21, 0.9) 0%, rgba(12, 21, 21, 0.68) 36%, rgba(12, 21, 21, 0.24) 70%),
    url("assets/hero-recruitment.png");
  background-position: center;
  background-size: cover;
}

.hero-content {
  width: min(640px, 100%);
  margin-left: max(0px, calc((100vw - 1120px) / 2));
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 620px;
  font-size: 54px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 570px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 136px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
}

.button.primary {
  color: var(--white);
  background: var(--teal);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.band {
  padding: 66px 0;
  background: var(--white);
}

.intro-grid,
.apply-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.apply h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.22;
  letter-spacing: 0;
}

.intro p:not(.section-kicker),
.people p,
.apply p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.projects {
  padding: 72px 0;
}

.work-model {
  padding: 72px 0 34px;
}

.roles {
  padding: 34px 0 72px;
}

.section-heading {
  max-width: 710px;
  margin-bottom: 28px;
}

.project-grid,
.work-grid,
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card,
.work-card,
.role-card {
  min-height: 240px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.work-model .section-heading p:not(.section-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.work-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 230px;
  box-shadow: none;
}

.work-card.emphasis {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.work-card.emphasis p {
  color: rgba(255, 255, 255, 0.82);
}

.work-label {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: var(--teal-dark);
  background: rgba(8, 127, 122, 0.1);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-card.emphasis .work-label {
  color: var(--white);
  background: var(--coral);
}

.project-number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
}

.project-card h3,
.work-card h3,
.role-card h3,
.apply-panel h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
}

.project-card p,
.work-card p,
.role-card p {
  margin: 0;
  color: var(--muted);
}

.people-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

.requirement-list {
  display: grid;
  gap: 12px;
}

.requirement-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.requirement-item:first-child {
  padding-top: 0;
}

.requirement-check {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  font-weight: 900;
}

.requirement-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.requirement-item p {
  margin: 0;
}

.role-card {
  min-height: 180px;
  box-shadow: none;
}

.apply {
  border-top: 1px solid var(--line);
}

.apply-panel {
  padding: 28px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
}

.apply-panel ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.apply-panel li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.86);
}

.apply-panel li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
  font-size: 14px;
}

html[lang="th"] body {
  font-family: "Noto Sans Thai", "Leelawadee UI", "Segoe UI", Arial, sans-serif;
}

html[lang="en"] .hero h1 {
  max-width: 680px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 76vh;
    padding-top: 112px;
    background-position: 62% center;
  }

  .hero h1 {
    font-size: 42px;
  }

  .intro-grid,
  .people-layout,
  .apply-layout,
  .project-grid,
  .work-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: absolute;
    padding: 12px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .language-switcher {
    min-width: 156px;
  }

  .language-switcher button {
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .hero {
    min-height: 74vh;
    padding: 108px 20px 48px;
    background-image:
      linear-gradient(90deg, rgba(12, 21, 21, 0.92) 0%, rgba(12, 21, 21, 0.78) 58%, rgba(12, 21, 21, 0.42) 100%),
      url("assets/hero-recruitment.png");
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .section-inner {
    width: min(100% - 32px, 1120px);
  }

  .band,
  .projects,
  .work-model,
  .roles {
    padding: 50px 0;
  }

  .intro h2,
  .section-heading h2,
  .apply h2 {
    font-size: 28px;
  }

  .project-card,
  .work-card,
  .role-card,
  .apply-panel {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
    padding: 22px 16px;
  }
}
