:root {
  --ink: #171513;
  --muted: #746f68;
  --soft: #ece8df;
  --paper: #f8f5ed;
  --panel: #fffdf7;
  --accent: #9a3d24;
  --accent-deep: #5d2416;
  --green: #53685d;
  --line: rgba(23, 21, 19, 0.15);
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-word {
  font-size: 18px;
  font-weight: 700;
}

.brand-note,
.header-link {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 58px);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a,
.site-footer a,
.header-link {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-footer a:hover,
.header-link:hover {
  color: var(--accent);
}

.header-link {
  justify-self: end;
}

main {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 6vw, 90px);
  min-height: calc(100svh - 76px);
  padding: clamp(42px, 7vw, 112px) clamp(18px, 4vw, 54px) clamp(28px, 4vw, 56px);
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 7.6em;
  margin-bottom: 26px;
  font-size: clamp(58px, 10vw, 158px);
  line-height: 0.86;
  overflow-wrap: normal;
  word-break: keep-all;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 6vw, 92px);
  line-height: 0.94;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
}

.hero-text {
  max-width: 420px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.8;
}

.hero-strip {
  align-self: stretch;
  min-height: clamp(460px, 70vh, 760px);
}

.hero-image {
  position: relative;
  height: 100%;
  min-height: 460px;
  margin: 0;
  overflow: hidden;
  background: var(--soft);
}

.hero-image img {
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-image:hover img {
  transform: scale(1.02);
}

.hero-image figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  color: #fffaf0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: clamp(64px, 9vw, 128px) clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(26px, 5vw, 64px);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -34px 0 34px auto;
  justify-content: flex-end;
}

.filter-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 12px;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.5vw, 20px);
  min-height: 420px;
}

.work-item {
  position: relative;
  grid-column: span 4;
  min-height: 360px;
  overflow: hidden;
  background: var(--soft);
}

.work-item:nth-child(6n + 1),
.work-item:nth-child(6n + 5) {
  grid-column: span 5;
  min-height: 520px;
}

.work-item:nth-child(6n + 3) {
  grid-column: span 3;
  min-height: 460px;
}

.work-item figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  color: #fffaf0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 8vw, 112px);
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-list article {
  display: grid;
  grid-template-columns: 52px minmax(140px, 0.45fr) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 34px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.service-list span,
.service-list p,
.facts dt,
.facts dd,
.package-list,
.form-message,
address {
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
}

.service-list span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.service-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.package-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.package-item {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--panel);
}

.package-item small {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.package-item h3 {
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
}

.package-item p,
.package-item li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.package-price {
  margin: 22px 0 18px;
  color: var(--accent-deep);
  font-size: 26px;
}

.package-item ul {
  margin: 0;
  padding-left: 18px;
}

.package-choose {
  align-self: flex-start;
  min-height: 38px;
  margin-top: auto;
  padding: 0 14px;
  border: 1px solid var(--accent-deep);
  background: transparent;
  color: var(--accent-deep);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background-color 180ms ease, color 180ms ease;
}

.package-choose:hover {
  background: var(--accent-deep);
  color: var(--paper);
}

.about-section {
  display: block;
}

.about-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 42px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.facts div {
  padding: 18px;
  background: var(--paper);
}

.facts dt {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 8vw, 110px);
  align-items: start;
  background: color-mix(in srgb, var(--green) 10%, var(--paper));
}

.contact-copy p {
  max-width: 420px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

address {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  font-style: normal;
  color: var(--accent-deep);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--accent-deep);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead-form .wide,
.lead-form button,
.form-message {
  grid-column: 1 / -1;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
}

.lead-form input,
.lead-form select {
  min-height: 46px;
}

.lead-form select {
  appearance: none;
  border-radius: 0;
  background: transparent;
}

.lead-form select:disabled {
  cursor: not-allowed;
  color: var(--muted);
}

.lead-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.7;
}

.addon-options {
  min-width: 0;
  margin: 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.addon-options legend {
  padding: 0 12px 0 0;
  color: var(--accent-deep);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.addon-options legend span {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

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

.addon-option {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px 0;
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.addon-option input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.addon-option span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.addon-option strong {
  font-weight: 700;
}

.addon-option small {
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 12px;
}

.field-placeholder,
.empty-state {
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

.field-placeholder {
  margin: 10px 0 0;
}

.empty-state {
  grid-column: 1 / -1;
  align-self: center;
  margin: 0;
  padding: 36px 0;
}

.lead-form button {
  min-height: 54px;
  margin-top: 8px;
  border: 1px solid var(--accent-deep);
  background: var(--accent-deep);
  color: var(--paper);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.lead-form button:hover {
  background: transparent;
  color: var(--accent-deep);
}

.lead-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--accent-deep);
  font-size: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 54px) 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.is-hidden {
  display: none;
}

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

  .site-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 22px;
    padding-bottom: 14px;
    overflow-x: auto;
  }

  .hero,
  .split-section,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-strip {
    min-height: min(78vw, 680px);
  }

  .work-item,
  .work-item:nth-child(6n + 1),
  .work-item:nth-child(6n + 3),
  .work-item:nth-child(6n + 5) {
    grid-column: span 6;
    min-height: 420px;
  }

  .filter-bar {
    justify-content: flex-start;
    margin: -22px 0 28px;
  }

}

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

  .header-link {
    display: none;
  }

  .hero-strip {
    margin-inline: -18px;
    min-height: 0;
  }

  .hero-image {
    height: 112vw;
    min-height: 0;
  }

  .hero-image figcaption {
    padding: 16px 18px;
  }

  .work-grid {
    display: block;
  }

  .work-item,
  .work-item:nth-child(6n + 1),
  .work-item:nth-child(6n + 3),
  .work-item:nth-child(6n + 5) {
    min-height: 116vw;
    margin-bottom: 12px;
  }

  .section-head {
    display: block;
  }

  .service-list article {
    grid-template-columns: 38px 1fr;
  }

  .service-list p {
    grid-column: 2;
  }

  .facts,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .addon-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
