:root {
  --bg: #17191c;
  --bg-soft: #212428;
  --surface: rgba(255, 248, 236, 0.08);
  --surface-strong: #f6efdf;
  --surface-muted: #e8deca;
  --text: #f8f3ea;
  --text-dark: #1b1a17;
  --muted: #c7c0b2;
  --line: rgba(255, 248, 236, 0.14);
  --accent: #7d8b1d;
  --accent-strong: #95a622;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Khmer", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(125, 139, 29, 0.16), transparent 30%),
    linear-gradient(180deg, #111315 0%, #17191c 32%, #1b1e22 100%);
  color: var(--text);
}

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

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

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header,
.hero,
.stats,
.section,
.quote-panel,
.contact-panel {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

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

.brand-logo {
  width: 82px;
  height: auto;
}

.brand-kicker {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

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

.button-accent {
  background: var(--accent);
  color: #111;
  box-shadow: 0 14px 36px rgba(125, 139, 29, 0.35);
}

.button-accent:hover {
  background: var(--accent-strong);
}

.button-secondary,
.button-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: rgba(125, 139, 29, 0.45);
  background: rgba(125, 139, 29, 0.08);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  min-height: 720px;
  padding: 64px 48px 56px;
  border: 1px solid rgba(255, 248, 236, 0.08);
  border-radius: 36px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 16, 18, 0.92) 0%, rgba(15, 16, 18, 0.82) 28%, rgba(15, 16, 18, 0.48) 56%, rgba(15, 16, 18, 0.24) 100%),
    url("assets/hero-fence.jpeg") center center / cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 45%, rgba(125, 139, 29, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.14));
  z-index: -1;
}

.eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(125, 139, 29, 0.3);
  border-radius: 999px;
  color: rgba(27, 26, 23, 0.76);
  background: rgba(255, 248, 236, 0.78);
  box-shadow: 0 8px 24px rgba(27, 26, 23, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-panel h2 {
  margin: 20px 0 16px;
  font-family: "Noto Serif Khmer", serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(3.3rem, 8vw, 6.7rem);
  max-width: 9.5ch;
  margin-left: auto;
  margin-right: auto;
}

.hero p,
.section-heading p,
.feature-card p,
.stats p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.03rem;
}

.hero-copy {
  max-width: 620px;
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  text-align: center;
  margin-inline: auto;
}

.hero-copy p {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(27, 26, 23, 0.68);
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  max-width: 760px;
}

.hero-facts li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--surface-strong);
  text-align: center;
  line-height: 1.45;
  font-size: 0.98rem;
}

.hero-media {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 2;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 248, 236, 0.12);
  background: #0f1012;
  box-shadow: var(--shadow);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%, rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.media-badge {
  padding: 16px 18px;
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  background: rgba(18, 18, 18, 0.54);
  box-shadow: var(--shadow);
}

.media-badge span {
  display: block;
  color: var(--surface-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}

.hero-info-card {
  position: absolute;
  left: -42px;
  bottom: 88px;
  width: min(340px, 66%);
  z-index: 3;
}

.hero-stack {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 31%;
  z-index: 2;
}

.media-small img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.media-offset {
  margin-top: 16px;
  margin-left: -42px;
}

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

.stats article,
.feature-card {
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.stats span {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.stats h2,
.feature-card h3 {
  margin: 14px 0 10px;
  font-size: 1.28rem;
}

.section {
  padding: 70px 0;
}

.section-contrast {
  background:
    linear-gradient(180deg, rgba(246, 239, 223, 0.98), rgba(232, 222, 202, 0.98)),
    url("assets/mesh-detail.jpeg") center / cover;
  color: var(--text-dark);
  border-radius: 40px;
}

.section-contrast .section-heading,
.section-contrast .feature-card,
.section-contrast .feature-card p {
  color: var(--text-dark);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact-panel h2 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

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

.section-contrast .feature-card {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(27, 26, 23, 0.1);
}

.builder-section {
  padding-top: 18px;
}

.builder-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  padding: 34px;
  border-radius: 32px;
  border: 1px solid rgba(255, 248, 236, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(125, 139, 29, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.builder-copy h2 {
  margin: 18px 0 14px;
  font-family: "Noto Serif Khmer", serif;
  font-size: clamp(2.5rem, 4.4vw, 4.2rem);
  line-height: 0.98;
}

.builder-copy p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

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

.builder-steps article {
  padding: 24px 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.builder-steps span {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.builder-steps h3 {
  margin: 12px 0 10px;
  font-size: 1.2rem;
}

.builder-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 18px;
  grid-auto-rows: 240px;
}

.gallery-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-large {
  grid-row: span 2;
}

.quote-section {
  padding-top: 10px;
}

.quote-panel {
  position: relative;
  padding: 42px 40px 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-mark {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 5rem;
  line-height: 1;
}

blockquote {
  margin: 0;
  max-width: 860px;
  font-family: "Noto Serif Khmer", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.contact-section {
  padding-top: 34px;
  padding-bottom: 90px;
}

.contact-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(125, 139, 29, 0.22), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(125, 139, 29, 0.24);
}

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

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (max-width: 1080px) {
  .hero,
  .feature-grid,
  .stats,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 6px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 34px 28px 34px;
  }

  .hero-media {
    min-height: 300px;
    order: 2;
    align-items: end;
  }

  .hero-copy {
    order: 1;
    max-width: none;
    text-align: center;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts li {
    min-height: 74px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(15, 16, 18, 0.78) 0%, rgba(15, 16, 18, 0.72) 34%, rgba(15, 16, 18, 0.55) 100%),
      url("assets/hero-fence.jpeg") center center / cover;
  }

  .hero-info-card {
    left: 0;
    bottom: 24px;
    width: min(360px, 72%);
  }

  .hero-stack {
    right: 8px;
    top: auto;
    bottom: 0;
    transform: none;
    width: 34%;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .builder-panel,
  .builder-steps {
    grid-template-columns: 1fr;
  }

  .gallery-large {
    grid-column: span 2;
  }

  .contact-panel {
    align-items: start;
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .stats,
  .section,
  .quote-panel,
  .contact-panel {
    width: min(calc(100% - 24px), var(--container));
  }

  .site-header {
    justify-content: center;
    text-align: center;
  }

  .brand {
    flex-direction: column;
  }

  .site-nav {
    gap: 18px;
    font-size: 0.95rem;
    flex-wrap: wrap;
  }

  .hero {
    gap: 22px;
    padding: 26px 18px 26px;
    border-radius: 28px;
  }

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

  .hero-media {
    min-height: 250px;
  }

  .hero-info-card {
    right: 0;
    left: 0;
    bottom: 18px;
    width: auto;
  }

  .hero-stack {
    width: 42%;
    right: -4px;
  }

  .builder-panel {
    padding: 24px;
    border-radius: 24px;
  }

  .media-offset {
    margin-left: -18px;
  }

  .stats {
    padding-bottom: 46px;
  }

  .section {
    padding: 52px 0;
  }

  .section-contrast {
    border-radius: 28px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-large {
    grid-column: auto;
    grid-row: auto;
  }

  .quote-panel {
    padding: 26px 0;
  }

  .contact-panel {
    padding: 24px;
  }
}
