:root {
  color-scheme: light;
  --ink: #2b211c;
  --muted: #74675f;
  --paper: #fff8ef;
  --paper-strong: #fffdf9;
  --line: #eadccb;
  --brand: #a65f38;
  --brand-dark: #623520;
  --apricot: #e7a15f;
  --sage: #5f7f73;
  --clay: #c7774d;
  --charcoal: #2f2a27;
  --shadow: 0 18px 48px rgba(73, 47, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 249, 0.9);
  border-bottom: 1px solid rgba(234, 220, 203, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4d3b32;
  font-size: 15px;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--apricot);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: 0.2s ease;
}

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

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 150px clamp(22px, 6vw, 82px) 70px;
}

.hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: linear-gradient(90deg, var(--brand), var(--apricot), var(--sage));
  content: "";
}

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(39, 25, 19, 0.78) 0%, rgba(39, 25, 19, 0.54) 43%, rgba(39, 25, 19, 0.13) 100%),
    linear-gradient(0deg, rgba(43, 33, 28, 0.66) 0%, rgba(43, 33, 28, 0) 45%);
}

.hero-content {
  position: relative;
  max-width: 880px;
  color: #fffdf9;
}

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

.hero .eyebrow {
  color: #f1b46f;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 7.4vw, 92px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 740px;
  margin: 24px 0 0;
  color: rgba(255, 253, 249, 0.91);
  font-size: clamp(18px, 2vw, 23px);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button.primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(98, 53, 32, 0.26);
}

.button.primary:hover {
  background: var(--brand-dark);
}

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

.belief-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(260px, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 30px clamp(22px, 6vw, 82px);
  background: var(--charcoal);
}

.belief-band p {
  margin: 0;
  color: #fffdf9;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.3;
}

.belief-band span {
  color: rgba(255, 253, 249, 0.76);
  font-size: 17px;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.metric {
  padding: 26px clamp(20px, 4vw, 58px);
  background: var(--paper);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  color: var(--brand-dark);
  font-size: 24px;
  line-height: 1.25;
}

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

.section {
  padding: 86px clamp(22px, 6vw, 82px);
}

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

h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.28;
}

p {
  color: var(--muted);
}

.card-grid,
.case-grid,
.keyword-columns {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.case-grid article,
.seo-panel,
.contact-form,
.keyword-columns > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 250px;
  padding: 28px;
}

.feature-card span,
.case-grid article span {
  color: var(--sage);
  font-weight: 800;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.service-list span,
.tags span {
  padding: 8px 12px;
  color: var(--brand-dark);
  background: #fbefe2;
  border: 1px solid #efd4ba;
  border-radius: 999px;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: #f8ecdf;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 800;
  border-bottom: 2px solid var(--apricot);
}

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

.work-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(166, 95, 56, 0.22);
}

.work-list b {
  color: var(--brand-dark);
}

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

.journey-section {
  background: #fffdf9;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.timeline article {
  min-height: 260px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.timeline article span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.philosophy-section {
  background: var(--paper-strong);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.method-grid div {
  min-height: 180px;
  padding: 24px;
  background: #fff;
}

.method-grid strong,
.method-grid span {
  display: block;
}

.method-grid strong {
  color: var(--brand-dark);
  font-size: 24px;
}

.method-grid span {
  margin-top: 10px;
  color: var(--muted);
}

.cases-section {
  background: #fbf3ea;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-auto-rows: 250px;
  gap: 14px;
  margin-bottom: 24px;
}

.photo-grid figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-grid figure:first-child {
  grid-row: span 2;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 16px 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  background: linear-gradient(0deg, rgba(36, 23, 20, 0.78), rgba(36, 23, 20, 0));
}

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

.case-grid article {
  min-height: 245px;
  padding: 24px;
}

.evidence-grid article {
  min-height: 270px;
}

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

.case-library article {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.case-library img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.case-library div {
  padding: 20px;
}

.case-library span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
}

.case-library h3 {
  font-size: 20px;
}

.case-library p {
  margin-bottom: 0;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 28px;
  background: #233c38;
  color: #fffdf9;
}

.about-section p {
  color: rgba(255, 253, 249, 0.78);
}

.about-copy {
  max-width: 850px;
}

.seo-panel {
  padding: 28px;
  color: var(--ink);
}

.seo-panel p {
  margin-top: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-section {
  background: #fffdf9;
}

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

.keyword-columns > div {
  padding: 26px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 70px);
  padding: 86px clamp(22px, 6vw, 82px);
  background: #fff7ee;
}

.contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  color: var(--brand-dark);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--brand-dark);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #e4cdb7;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fffdf9;
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: -2px 0 0;
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(22px, 6vw, 82px);
  color: rgba(255, 253, 249, 0.82);
  background: #241714;
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 253, 249, 0.62);
}

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

@media (max-width: 1050px) {
  .card-grid.three,
  .case-grid,
  .case-library,
  .method-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .site-nav {
    position: absolute;
    top: 75px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #fffdf9;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    white-space: normal;
  }

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

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

  .hero {
    min-height: 88vh;
    padding-top: 130px;
  }

  .belief-band,
  .intro-band,
  .card-grid.three,
  .split-section,
  .method-grid,
  .case-grid,
  .case-library,
  .timeline,
  .photo-grid,
  .about-section,
  .keyword-columns,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .work-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .photo-grid {
    grid-auto-rows: 240px;
  }

  .photo-grid figure:first-child {
    grid-row: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 12px 16px;
  }

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

  .brand small {
    max-width: 185px;
  }

  .hero {
    padding: 118px 18px 50px;
  }

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

  .section,
  .contact-section {
    padding: 58px 18px;
  }

  .feature-card,
  .case-grid article,
  .timeline article,
  .method-grid div {
    min-height: auto;
  }

  .photo-grid {
    grid-auto-rows: 220px;
  }
}
