:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #66635c;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --line: rgba(22, 22, 22, 0.12);
  --accent: #0f6f68;
  --accent-dark: #0a4c48;
  --brass: #a77c3f;
  --shadow: 0 22px 60px rgba(22, 22, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 244, 238, 0.92);
  box-shadow: 0 10px 34px rgba(22, 22, 22, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand-logo {
  width: clamp(138px, 15vw, 220px);
  height: auto;
  filter: invert(1);
  transition: filter 180ms ease;
}

.site-header.is-scrolled .brand-logo {
  filter: none;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 14px;
}

.header-cta {
  padding: 10px 16px;
  border: 1px solid currentColor;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #111;
}

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 13, 15, 0.78), rgba(5, 13, 15, 0.34) 52%, rgba(5, 13, 15, 0.1)),
    linear-gradient(0deg, rgba(5, 13, 15, 0.46), rgba(5, 13, 15, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  padding: 150px clamp(20px, 6vw, 76px) 96px;
  color: #fff;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 720;
}

h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 680;
}

h3 {
  font-size: 22px;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

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

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

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

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

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) 1fr;
  gap: clamp(28px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.intro p:last-child,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

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

.service-card {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(22, 22, 22, 0.04);
}

.card-index {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--accent);
  font-weight: 800;
}

.service-card p,
.work-item p,
.timeline p {
  color: var(--muted);
}

.work-section {
  width: 100%;
  max-width: none;
  padding-inline: clamp(20px, 5vw, 76px);
  background: #1b1c1a;
  color: #fff;
}

.work-section .section-heading,
.work-list {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.work-list {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.work-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1fr;
  gap: 26px;
  padding: 28px 0;
  background: #1b1c1a;
}

.work-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.process {
  border-bottom: 1px solid var(--line);
}

.launch {
  border-bottom: 1px solid var(--line);
}

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

.launch-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.launch-grid p {
  color: var(--muted);
}

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

.timeline li {
  min-height: 230px;
  padding: 22px;
  border-top: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.6);
}

.timeline span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--brass);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1fr;
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  color: var(--ink);
}

.contact-details p {
  margin: 0;
}

.contact-details a {
  color: var(--accent-dark);
  font-weight: 700;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 13px 14px;
  font: inherit;
  background: #fbfaf7;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(15, 111, 104, 0.24);
  border-color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 76px);
  color: rgba(255, 255, 255, 0.72);
  background: #111;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

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

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

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

  .brand-logo {
    width: 118px;
  }

  .header-cta {
    padding: 9px 12px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding: 120px 20px 66px;
  }

  h1 {
    font-size: 40px;
  }

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

  .service-grid,
  .timeline,
  .launch-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .timeline li {
    min-height: auto;
  }

  .card-index,
  .timeline span {
    margin-bottom: 28px;
  }

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