:root {
  --ink: #13201d;
  --muted: #62706b;
  --paper: #fbfaf7;
  --line: #dfe7e2;
  --teal: #0c8c86;
  --coral: #df6549;
  --gold: #c99b36;
  --leaf: #587a49;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(19, 32, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.hero {
  min-height: 88vh;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(12, 140, 134, 0.18), rgba(223, 101, 73, 0.12) 44%, rgba(201, 155, 54, 0.18)),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav,
.hero-grid,
.section-inner,
.footer {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.nav {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  box-shadow: 0 8px 24px rgba(12, 140, 134, 0.28);
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.hero-grid {
  min-height: calc(88vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 22px;
}

h2 {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 14px;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-lead,
.section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-action,
.secondary-action,
.card-link,
.filter {
  min-height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary-action {
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
}

.secondary-action {
  padding: 0 18px;
  color: var(--ink);
  border-color: rgba(19, 32, 29, 0.18);
  background: rgba(255, 255, 255, 0.6);
}

.primary-action.light {
  background: var(--white);
  color: var(--ink);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric {
  min-height: 142px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(19, 32, 29, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric strong {
  display: block;
  font-size: 44px;
  line-height: 1;
}

.metric span {
  display: block;
  color: var(--muted);
  margin-top: 12px;
  font-weight: 700;
}

.section {
  padding: 82px 0;
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.tools {
  display: grid;
  gap: 12px;
}

input[type="search"] {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter {
  padding: 0 13px;
  background: var(--paper);
  border-color: var(--line);
  color: var(--muted);
}

.filter.active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

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

.work-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(19, 32, 29, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.preview {
  position: relative;
  height: 190px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(12, 140, 134, 0.2), rgba(223, 101, 73, 0.18)),
    #eef4f1;
  border-bottom: 1px solid var(--line);
}

.preview iframe {
  position: absolute;
  inset: 0;
  width: 1440px;
  height: 920px;
  border: 0;
  transform: scale(0.22);
  transform-origin: 0 0;
  pointer-events: none;
  background: var(--white);
}

.status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(12, 140, 134, 0.1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.tag.alt {
  background: rgba(223, 101, 73, 0.12);
  color: var(--coral);
}

.work-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.features {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.features li {
  color: #374944;
  font-size: 14px;
  line-height: 1.45;
}

.features li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  display: inline-block;
  margin-right: 8px;
  transform: translateY(-1px);
}

.card-actions {
  margin-top: auto;
}

.card-link {
  padding: 0 14px;
  background: var(--ink);
  color: var(--white);
}

.card-link.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-list span {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 800;
}

.contact-band {
  background: var(--ink);
  color: var(--white);
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 255, 255, 0.72);
}

.footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  h1 {
    font-size: 52px;
  }

  .hero-grid,
  .section-head,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .hero {
    padding: 16px 0;
  }

  .nav,
  .hero-grid,
  .section-inner,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .nav-links {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-lead,
  .section p {
    font-size: 16px;
  }

  .hero-panel,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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

  .footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }
}
