:root {
  --ink: #202424;
  --muted: #65706d;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #dfe4df;
  --teal: #1f6f73;
  --teal-dark: #12393d;
  --rust: #b64f3b;
  --olive: #7a8754;
  --steel: #e8eef0;
  --shadow: 0 18px 60px rgba(20, 31, 30, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: rgba(18, 57, 61, 0.76);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(18, 57, 61, 0.95);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
  border-color: var(--rust);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 60px));
  overflow: hidden;
  color: var(--white);
  background: var(--teal-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 22, 23, 0.72), rgba(12, 22, 23, 0.34) 46%, rgba(12, 22, 23, 0.08)),
    url("assets/hero-gallery.png") center / cover no-repeat;
  transform: scale(1.015);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  padding: clamp(78px, 11vw, 132px) 0 54px;
  margin-left: clamp(18px, 7vw, 96px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd1c8;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(40px, 7.2vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions,
.button {
  display: flex;
  align-items: center;
}

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

.button {
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-weight: 750;
}

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

.button-primary:hover {
  background: #9f3f2e;
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(620px, 100%);
  margin: 42px 0 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
}

.hero-stats div {
  padding: 18px;
  background: rgba(18, 57, 61, 0.72);
}

.hero-stats dt {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

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

.intro {
  padding: 34px clamp(18px, 4vw, 48px);
}

.section-grid,
.section,
.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.section-grid p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: clamp(66px, 9vw, 112px) 0;
}

.section.tinted,
.section.projects {
  width: 100%;
  padding-inline: max(18px, calc((100% - var(--max)) / 2));
}

.tinted {
  background: var(--steel);
}

.projects {
  background: #f0f3ec;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: 42px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-heading p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
}

.feature-showcase,
.image-text,
.process-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
}

.feature-showcase img,
.image-text img,
.process-layout img,
.project-card img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list article,
.capability-card,
.timeline article,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-list article {
  padding: 22px;
}

.feature-list span,
.timeline span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.feature-list p,
.capability-card p,
.timeline p,
.project-card p,
.image-text p {
  margin: 0;
  color: var(--muted);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 54px;
}

.capability-card {
  min-height: 190px;
  padding: 24px;
}

.capability-card:nth-child(2) {
  border-top: 4px solid var(--teal);
}

.capability-card:nth-child(3) {
  border-top: 4px solid var(--olive);
}

.capability-card:nth-child(4) {
  border-top: 4px solid var(--rust);
}

.image-text {
  padding-top: 20px;
}

.image-text > div {
  max-width: 530px;
}

.image-text h2 {
  margin-bottom: 20px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline article {
  padding: 24px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  margin-top: 36px;
}

.project-card {
  padding: 24px;
}

.project-card.wide {
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
}

.project-card.wide div {
  padding: 24px;
}

.contact {
  padding-bottom: clamp(70px, 9vw, 120px);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.82fr);
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(28px, 5vw, 58px);
  color: var(--white);
  background: var(--teal-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.74);
}

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

.contact-list a,
.contact-list p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.contact-list a:hover {
  border-color: rgba(255, 255, 255, 0.44);
}

.contact-list span {
  display: block;
  margin-bottom: 4px;
  color: #ffd1c8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--teal);
  font-weight: 750;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(18, 57, 61, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 4px;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(12, 22, 23, 0.76), rgba(12, 22, 23, 0.42)),
      url("assets/hero-gallery.png") center / cover no-repeat;
  }

  .hero-content {
    width: min(100% - 36px, 680px);
    margin-inline: auto;
    padding-top: 84px;
  }

  .section-grid,
  .section-heading,
  .feature-showcase,
  .image-text,
  .process-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    top: 68px;
  }

  .hero-content {
    padding: 72px 0 38px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-stats,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-block: 58px;
  }

  .capability-card {
    min-height: 0;
  }

  .contact-panel {
    padding: 24px;
  }

  .site-footer {
    display: grid;
  }
}
