:root {
  --ink: #111111;
  --muted: #5e625f;
  --line: #dedbd4;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --accent: #d63d2e;
  --accent-dark: #a92b20;
  --teal: #0b746d;
  --gold: #c99732;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: #ffffff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 244, 238, 0.94);
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  background: var(--accent);
  border-radius: 6px;
  letter-spacing: 0;
}

.brand-name {
  font-size: 18px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(9, 12, 12, 0.78) 0%, rgba(9, 12, 12, 0.58) 42%, rgba(9, 12, 12, 0.12) 100%);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 48px;
}

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

.hero .eyebrow {
  color: #ffd166;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 9vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.1);
}

.hero-metrics {
  display: grid;
  max-width: 720px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 42px 0 0;
  background: rgba(255, 255, 255, 0.24);
}

.hero-metrics div {
  min-height: 92px;
  padding: 18px;
  background: rgba(17, 17, 17, 0.36);
}

.hero-metrics dt {
  font-size: 26px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0;
}

.section-head {
  display: grid;
  max-width: 760px;
  gap: 12px;
  margin-bottom: 34px;
}

.section-head h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.service-grid article,
.case-list article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-index {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.service-grid h3,
.case-list h3,
.case-copy h3 {
  margin: 14px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.service-grid p,
.case-list p,
.case-copy p {
  margin: 0;
  color: var(--muted);
}

.cases {
  width: 100%;
  max-width: none;
  padding-right: clamp(18px, 4vw, 56px);
  padding-left: clamp(18px, 4vw, 56px);
  background: #ebe7de;
}

.cases .section-head,
.case-layout {
  width: min(var(--max), 100%);
  margin-right: auto;
  margin-left: auto;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
}

.case-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}

.case-feature img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.case-copy {
  display: grid;
  align-content: end;
  padding: 28px;
}

.case-type {
  color: var(--accent);
  font-weight: 900;
}

.case-list {
  display: grid;
  gap: 18px;
}

.case-list article {
  min-height: 128px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-list li {
  min-height: 138px;
  padding: 24px;
  background: var(--surface);
}

.process-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.process-list span {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  color: var(--teal);
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid #c9c4ba;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
}

.lead-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 24px;
  padding: 28px 18px;
  color: #ffffff;
  background: var(--ink);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header {
    height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 18px 18px;
    background: rgba(247, 244, 238, 0.98);
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.12);
  }

  .site-header.is-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 13px 0;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(9, 12, 12, 0.44) 0%, rgba(9, 12, 12, 0.86) 100%);
  }

  .hero-content {
    padding-bottom: 32px;
  }

  .hero-metrics,
  .service-grid,
  .process-list,
  .contact,
  .case-layout,
  .case-feature {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    max-width: 420px;
  }

  .case-feature img {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 16px;
  }

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

  .hero-content {
    width: min(100% - 28px, var(--max));
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section {
    width: min(100% - 28px, var(--max));
    padding: 62px 0;
  }

  .cases {
    padding-right: 14px;
    padding-left: 14px;
  }

  .service-grid article,
  .case-list article,
  .lead-form {
    padding: 20px;
  }

  .site-footer {
    display: grid;
    justify-items: center;
    text-align: center;
  }
}
