:root {
  --bg: #090909;
  --bg-soft: #121212;
  --panel: rgba(18, 18, 18, 0.88);
  --panel-strong: #161616;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4efe8;
  --muted: #b7ab9a;
  --muted-strong: #d4c6b2;
  --muted-soft: #dfd4c4;
  --accent: #f3eee7;
  --accent-dark: #111111;
  --success: #22c55e;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Anuphan", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(196, 169, 129, 0.16), transparent 34%),
    radial-gradient(circle at right 20%, rgba(74, 64, 48, 0.22), transparent 30%),
    linear-gradient(180deg, #0b0b0b 0%, #070707 100%);
  color: var(--text);
  text-rendering: optimizeLegibility;
}

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

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 22px;
  backdrop-filter: blur(14px);
}

.brand,
.nav a,
.hero-kicker,
.section-kicker,
.work-type,
.card-label,
.mini-title {
  font-family: "Sora", sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
}

.brand-mark-image {
  border-radius: 12px;
  object-fit: cover;
}

.brand-text {
  display: inline-block;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--muted-soft);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  border-top: 0;
  padding-top: 62px;
}

.eyebrow,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.hero-kicker,
.section-kicker {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.hero-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
}

.hero-logo-image {
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.hero-logo-caption {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero h1,
.section-heading h2 {
  margin: 18px 0 0;
  font-family: "Sora", "Anuphan", sans-serif;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8.3vw, 5.5rem);
}

.hero-lead,
.hero-body,
.section-heading h2,
.service-card p,
.work-card p,
.stack-card p,
.about-copy p,
.contact-card,
.bullet-list,
.process-list {
  color: var(--muted-strong);
}

.hero-lead,
.hero-body {
  max-width: 680px;
  font-size: 1.12rem;
  line-height: 1.95;
}

.hero-lead {
  margin: 28px 0 0;
}

.hero-body {
  margin: 14px 0 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: var(--accent-dark);
  border-color: transparent;
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.hero-card,
.service-card,
.work-card,
.stack-card,
.about-points,
.contact-card,
.bullet-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px;
  align-self: end;
}

.card-label,
.work-type {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.focus-list,
.bullet-list,
.contact-list {
  margin: 18px 0 0;
  padding-left: 18px;
}

.focus-list li,
.bullet-list li,
.contact-list li,
.process-list li {
  margin-top: 10px;
  line-height: 1.7;
}

.mini-stats {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.mini-title {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
}

.service-grid,
.work-grid,
.stack-grid {
  display: grid;
  gap: 18px;
}

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

.service-card,
.stack-card,
.work-card {
  padding: 28px;
}

.service-icon {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
}

.service-card h3,
.stack-card h3,
.work-card h3,
.about-points h3 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.35;
}

.service-card p,
.stack-card p,
.work-card p {
  margin: 14px 0 0;
  line-height: 1.85;
}

.split-section,
.about-grid,
.contact-card {
  display: grid;
  gap: 20px;
}

.split-section {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.bullet-panel,
.about-points {
  padding: 28px;
}

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

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

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 0;
  padding-left: 22px;
}

.about-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.about-copy p {
  margin: 0 0 16px;
  line-height: 1.95;
}

.contact-card {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  padding: 30px;
  align-items: start;
}

.contact-status {
  margin: 0 0 10px;
  color: var(--muted-strong);
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .service-grid,
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header,
  .hero,
  .split-section,
  .work-grid,
  .stack-grid,
  .about-grid,
  .contact-card,
  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    display: grid;
    justify-content: flex-start;
  }

  .nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1,
  .section-heading h2 {
    max-width: none;
  }

  .hero-logo-row {
    margin-top: 22px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-top: 18px;
    padding-bottom: 48px;
  }

  .section {
    padding: 34px 0;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 15vw, 3.8rem);
  }

  .hero-lead,
  .hero-body {
    font-size: 1rem;
  }

  .brand {
    font-size: 1.2rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-logo {
    width: 56px;
    height: 56px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
