:root {
  --ink: #15211d;
  --muted: #63706b;
  --line: #dde4df;
  --paper: #f7f4ed;
  --white: #ffffff;
  --forest: #16483f;
  --teal: #1f7b76;
  --clay: #b4553e;
  --gold: #c6953e;
  --blue: #2d5b83;
  --shadow: 0 24px 70px rgba(20, 35, 30, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  padding: 0.08rem 0.35rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 64px);
  color: var(--white);
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled,
body.sub-page .site-header {
  background: rgba(247, 244, 237, 0.94);
  box-shadow: 0 10px 34px rgba(17, 30, 26, 0.1);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}

.nav a {
  opacity: 0.82;
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
}

.nav-cta {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 8px 16px;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 21, 18, 0.86), rgba(8, 21, 18, 0.46) 48%, rgba(8, 21, 18, 0.2)),
    linear-gradient(0deg, rgba(8, 21, 18, 0.78), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 78vh;
  width: min(760px, calc(100% - 36px));
  flex-direction: column;
  justify-content: center;
  padding: 122px 0 60px clamp(18px, 6vw, 76px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0bf66;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 3.25rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero-content p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
}

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

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.74);
  color: var(--white);
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(980px, calc(100% - 36px));
  margin: 0 auto 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(7, 22, 18, 0.42);
  backdrop-filter: blur(16px);
}

.hero-stats article {
  padding: 20px 24px;
}

.hero-stats article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
}

.intro-grid p:last-child,
.text-panel p,
.section-heading p {
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  max-width: none;
  padding: 0;
  background: var(--line);
}

.feature-band article {
  min-height: 250px;
  padding: clamp(28px, 4vw, 54px);
  background: var(--white);
}

.icon-dot {
  display: block;
  width: 15px;
  height: 15px;
  margin-bottom: 32px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 24px 0 0 var(--blue);
}

.icon-green {
  background: var(--forest);
  box-shadow: 24px 0 0 var(--gold);
}

.icon-gold {
  background: var(--gold);
  box-shadow: 24px 0 0 var(--teal);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
}

.media-panel img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font-weight: 800;
}

.text-link::after {
  content: "→";
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
}

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

.case-card {
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(17, 30, 26, 0.09);
}

.case-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.case-card div {
  padding: 24px;
}

.case-card span,
.detailed-cases span {
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 800;
}

.case-card p,
.business-grid p,
.business-grid li,
.proof-grid p,
.detailed-cases p,
.timeline span,
.contact-card p {
  color: var(--muted);
}

.trust-strip {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - 1180px) / 2));
  padding-left: max(18px, calc((100vw - 1180px) / 2));
  background: var(--forest);
  color: var(--white);
}

.logo-wall,
.credential-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.logo-wall span,
.credential-wall span {
  display: grid;
  min-height: 86px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px clamp(18px, 5vw, 64px);
  background: #101916;
  color: var(--white);
}

.site-footer p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.64);
}

.icp-link {
  display: inline-block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.icp-link:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.compact {
  margin-top: 64px;
}

.sub-hero {
  min-height: 66vh;
  display: grid;
  align-items: end;
  padding: 132px clamp(18px, 6vw, 76px) 68px;
  background:
    linear-gradient(120deg, rgba(15, 43, 37, 0.94), rgba(36, 88, 84, 0.66)),
    url("business-hero.png") center / cover;
  color: var(--white);
}

.sub-hero > div {
  max-width: 820px;
}

.sub-hero p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
}

.cases-hero {
  background:
    linear-gradient(120deg, rgba(21, 33, 29, 0.9), rgba(45, 91, 131, 0.62)),
    url("case-retail.png") center / cover;
}

.trust-hero {
  background:
    linear-gradient(120deg, rgba(21, 33, 29, 0.9), rgba(180, 85, 62, 0.5)),
    url("operations.png") center / cover;
}

.contact-hero {
  background:
    linear-gradient(120deg, rgba(21, 33, 29, 0.9), rgba(31, 123, 118, 0.54)),
    url("hero-brand.png") center / cover;
}

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

.business-grid article,
.proof-grid article {
  border: 1px solid var(--line);
  background: var(--white);
  padding: clamp(28px, 4vw, 46px);
}

.business-number {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 900;
}

.business-grid ul {
  margin: 24px 0 0;
  padding-left: 18px;
}

.product-feed {
  padding-top: 0;
}

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

.product-link {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 20px;
}

.product-link span {
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-link small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-link.is-pending {
  background: rgba(255, 255, 255, 0.72);
}

.product-link.is-pending small {
  color: var(--clay);
}

.detailed-cases {
  display: grid;
  gap: 22px;
}

.detailed-cases article {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 18px;
}

.detailed-cases img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.detailed-cases dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}

.detailed-cases dl div {
  border-top: 2px solid var(--line);
  padding-top: 12px;
}

.detailed-cases dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.detailed-cases dd {
  margin: 0;
  font-weight: 800;
}

.trust-wall-page {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - 1180px) / 2));
  padding-left: max(18px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: var(--white);
}

.timeline ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  border-left: 3px solid var(--clay);
  background: var(--white);
  padding: 24px;
}

.timeline strong {
  display: block;
  margin-bottom: 10px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
}

.product-gallery,
.fence-gallery {
  display: grid;
  gap: 18px;
}

.fence-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fence-shot {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.fence-shot img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.fence-shot figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.fence-hero {
  background:
    linear-gradient(120deg, rgba(15, 43, 37, 0.94), rgba(22, 72, 63, 0.55)),
    url("double-wire-fence-1.svg") center / cover;
}

.contact-card,
.contact-form {
  border: 1px solid var(--line);
  background: var(--white);
  padding: clamp(26px, 4vw, 44px);
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-methods a {
  color: var(--forest);
  font-weight: 800;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fbfaf6;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

.full {
  grid-column: 1 / -1;
}

.form-result {
  display: none;
  white-space: pre-wrap;
  border: 1px solid rgba(22, 72, 63, 0.28);
  background: rgba(31, 123, 118, 0.08);
  color: var(--forest);
  padding: 18px;
}

.form-result.is-visible {
  display: block;
}

@media (max-width: 860px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .nav {
    position: fixed;
    top: 74px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 18px;
  }

  .nav-cta {
    border: 0;
    border-radius: 0;
  }

  .hero-content {
    min-height: 74vh;
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(8, 21, 18, 0.86), rgba(8, 21, 18, 0.4)),
      linear-gradient(90deg, rgba(8, 21, 18, 0.72), rgba(8, 21, 18, 0.2));
  }

  .hero-stats,
  .intro-grid,
  .feature-band,
  .split-section,
  .case-grid,
  .business-grid,
  .proof-grid,
  .link-list,
  .detailed-cases article,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats article + article {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 0;
  }

  .section-heading {
    display: block;
  }

  .logo-wall,
  .credential-wall,
  .detailed-cases dl,
  .timeline ol,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .detailed-cases img {
    min-height: 240px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.55rem;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .sub-hero {
    min-height: 58vh;
    padding-top: 112px;
  }
}
