:root {
  --ink: #14212f;
  --muted: #5f6875;
  --line: #dce4ea;
  --paper: #fbfcfb;
  --white: #ffffff;
  --brand: #0a4c86;
  --brand-dark: #082f5f;
  --river: #2a8ab3;
  --leaf: #4f7d61;
  --copper: #b66a42;
  --amber: #e1aa4f;
  --shadow: 0 18px 55px rgba(20, 33, 47, 0.14);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 251, 0.9);
  border-bottom: 1px solid rgba(220, 228, 234, 0.76);
  backdrop-filter: blur(16px);
}

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

.logo-crop {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}

.logo-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(3.6);
  transform-origin: center;
}

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

.brand strong {
  font-size: clamp(0.92rem, 2vw, 1rem);
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: #263542;
  font-size: 0.94rem;
  font-weight: 700;
}

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

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-link,
.menu-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.icon-link {
  min-height: 42px;
  padding: 0 14px;
  color: var(--brand-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 800;
}

.icon-link svg,
.button svg,
.menu-button svg,
.service-card svg,
.trust-list svg,
.contact-methods svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2.2;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 108px clamp(20px, 5vw, 72px) 38px;
}

.hero picture,
.hero picture img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero picture {
  z-index: -2;
}

.hero picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 19, 34, 0.84), rgba(5, 19, 34, 0.48) 50%, rgba(5, 19, 34, 0.1)),
    linear-gradient(0deg, rgba(5, 19, 34, 0.5), rgba(5, 19, 34, 0.06) 45%);
}

.hero-content {
  width: min(830px, 100%);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.hero-copy.zh {
  margin-top: 6px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--copper);
  box-shadow: 0 12px 34px rgba(118, 58, 28, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #9f5636;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-proof span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 800;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.band {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.intro {
  padding: clamp(34px, 6vw, 64px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
}

.intro h2,
.section-heading h2,
.why-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro p,
.section-heading p,
.why-copy p,
.contact-copy p,
.process-list p,
.service-card p,
.project-card p {
  color: var(--muted);
  line-height: 1.7;
}

.intro-grid > p {
  margin: 0;
  font-size: 1.05rem;
}

.services,
.work,
.contact {
  padding: clamp(62px, 8vw, 104px) 0;
}

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

.section-heading.compact {
  max-width: 690px;
}

.section-heading p {
  margin: 14px 0 0;
}

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

.service-card {
  min-height: 258px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(20, 33, 47, 0.06);
}

.service-card svg {
  width: 34px;
  height: 34px;
  color: var(--brand);
}

.service-card h3 {
  margin: 22px 0 9px;
  font-size: 1.28rem;
}

.service-card p {
  margin: 0;
}

.service-card span {
  display: inline-block;
  margin-top: 20px;
  color: var(--leaf);
  font-size: 0.9rem;
  font-weight: 900;
}

.why {
  padding: clamp(62px, 8vw, 92px) 0;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
  gap: clamp(26px, 6vw, 74px);
  align-items: center;
}

.why-copy p {
  margin: 20px 0 0;
}

.brand-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 28px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 42%;
  box-shadow: var(--shadow);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trust-list div {
  min-height: 126px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f6f9f8;
}

.trust-list svg {
  width: 26px;
  height: 26px;
  color: var(--leaf);
}

.trust-list span {
  font-weight: 850;
  line-height: 1.4;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 360px;
  gap: 14px;
}

.project-card {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--brand-dark);
  box-shadow: var(--shadow);
}

.project-card.wide {
  grid-column: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 450ms ease;
}

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

.project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(6, 25, 42, 0.82), rgba(6, 25, 42, 0.1) 58%);
}

.project-card div {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  color: var(--white);
}

.project-card span {
  color: #ffd585;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 6px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.project-source {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--brand);
  font-weight: 900;
}

.project-source svg {
  width: 18px;
  height: 18px;
}

.process {
  padding: clamp(62px, 8vw, 92px) 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 224px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.process-list span {
  color: var(--copper);
  font-weight: 950;
}

.process-list h3 {
  margin: 20px 0 8px;
}

.process-list p {
  margin: 0;
  font-size: 0.95rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 112px;
}

.contact-copy p {
  margin: 18px 0 0;
}

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

.contact-methods a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 850;
}

.contact-methods svg {
  color: var(--brand);
}

.estimate-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.estimate-form label,
.estimate-form .full {
  grid-column: span 2;
}

.estimate-form label:not(.full) {
  grid-column: span 1;
}

.estimate-form span {
  display: block;
  margin-bottom: 8px;
  color: #334453;
  font-size: 0.9rem;
  font-weight: 900;
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  border: 1px solid #cbd6df;
  border-radius: var(--radius);
  background: #fbfcfd;
  color: var(--ink);
  outline: none;
}

.estimate-form input,
.estimate-form select {
  height: 48px;
  padding: 0 12px;
}

.estimate-form textarea {
  resize: vertical;
  min-height: 126px;
  padding: 12px;
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  border-color: var(--river);
  box-shadow: 0 0 0 4px rgba(42, 138, 179, 0.12);
}

.form-note {
  grid-column: span 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.86);
  background: #10202f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.7fr;
  gap: 28px;
}

.footer-grid > div:first-child {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 12px;
  align-items: center;
}

.footer-logo {
  grid-row: span 2;
  width: 54px;
  height: 54px;
}

.footer-grid strong,
.footer-grid span {
  color: var(--white);
  font-weight: 900;
}

.footer-grid p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .icon-link span {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    grid-column: 1 / -1;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .mobile-nav a {
    padding: 15px 12px;
    border-radius: 6px;
    font-weight: 900;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus-visible {
    background: #eef5f7;
  }

  .intro-grid,
  .why-grid,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 330px;
  }

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

  .contact-copy {
    position: static;
  }

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

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

  .brand small {
    display: none;
  }

  .hero {
    min-height: 82vh;
    padding: 94px 18px 28px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.3rem);
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    line-height: 1.3;
  }

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

  .section-inner {
    width: min(100% - 32px, 1180px);
  }

  .service-grid,
  .trust-list,
  .work-grid,
  .process-list,
  .estimate-form {
    grid-template-columns: 1fr;
  }

  .project-card.wide,
  .estimate-form label,
  .estimate-form label:not(.full),
  .estimate-form .full,
  .form-note {
    grid-column: auto;
  }

  .project-card,
  .project-card img {
    min-height: 0;
  }

  .work-grid {
    grid-auto-rows: 280px;
  }

  .process-list li {
    min-height: auto;
  }
}
