:root {
  --bg: #fbf5ec;
  --paper: #fffaf2;
  --cream: #f6eadb;
  --ink: #14120f;
  --text: #3a3229;
  --muted: #75695f;
  --gold: #bd852f;
  --gold-dark: #9b6a20;
  --line: rgba(120, 86, 45, 0.2);
  --shadow: 0 16px 34px rgba(84, 58, 26, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 0 clamp(32px, 5vw, 86px);
  background: rgba(255, 250, 243, 0.97);
  border-bottom: 1px solid rgba(160, 119, 63, 0.16);
  position: sticky;
  top: 0;
  z-index: 50;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 260px;
  color: #14110d;
  text-transform: uppercase;
}

.wordmark__mark {
  position: relative;
  width: 28px;
  height: 28px;
  border: 5px solid #16110c;
  border-top-color: transparent;
  border-radius: 50%;
}

.wordmark__mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -13px;
  width: 22px;
  height: 14px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, transparent 0 22%, var(--gold) 23% 39%, transparent 40% 58%, var(--gold) 59% 75%, transparent 76%);
}

.wordmark__text {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 54px);
  flex: 1;
  color: #191510;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav a:first-child::after {
  content: " v";
  font-size: 11px;
  color: var(--gold-dark);
}

.nav-cta,
.primary-btn,
.submit-btn {
  border: 0;
  color: #fff;
  background: var(--gold);
  box-shadow: 0 12px 22px rgba(160, 109, 34, 0.2);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, background 0.18s ease;
}

.nav-cta:hover,
.primary-btn:hover,
.submit-btn:hover,
.solution-card button:hover,
.project-card button:hover {
  transform: translateY(-1px);
  background: var(--gold-dark);
}

.nav-cta {
  min-width: 282px;
  padding: 16px 26px;
  border-radius: 3px;
  font-size: 13px;
}

.hero {
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(420px, 0.42fr) minmax(0, 0.58fr);
  background: #f7eddf;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 6vw, 72px) clamp(34px, 5.5vw, 84px);
  background: linear-gradient(90deg, rgba(255, 250, 241, 0.98) 0%, rgba(255, 250, 241, 0.9) 72%, rgba(255, 250, 241, 0.05) 100%);
}

.hero__content h1,
.section-title h2,
.lead-form h2 {
  margin: 0;
  color: #18130e;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

.hero__content h1 {
  max-width: 610px;
  font-size: clamp(44px, 4.2vw, 65px);
  line-height: 1.13;
  overflow-wrap: break-word;
}

.hero__lead {
  max-width: 510px;
  margin: 28px 0 22px;
  color: #2e2a24;
  font-size: 16px;
  line-height: 1.72;
  font-weight: 600;
}

.hero__points {
  display: grid;
  gap: 13px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.hero__points li {
  position: relative;
  min-height: 28px;
  display: flex;
  align-items: center;
  padding-left: 43px;
  color: #2e281e;
  font-size: 13px;
  font-weight: 700;
}

.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 27px;
  height: 27px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189, 133, 47, 0.16) 0 32%, transparent 33%);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.primary-btn {
  padding: 17px 36px;
  border-radius: 3px;
  font-size: 13px;
}

.link-btn {
  position: relative;
  color: #5c4c38;
  border-bottom: 1px solid rgba(92, 76, 56, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.link-btn::before {
  content: ">";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 9px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-dark);
}

.hero__image {
  min-height: 570px;
  background-image: linear-gradient(90deg, rgba(250, 240, 225, 0.28), rgba(250, 240, 225, 0.02)), url("./assets/images/ouyee-hero.jpg");
  background-size: cover;
  background-position: center;
}

.section {
  padding: 36px clamp(32px, 5vw, 86px);
}

.section-title {
  text-align: center;
  margin: 0 auto 28px;
}

.section-title h2 {
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1.15;
  text-transform: uppercase;
}

.section-title p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.solutions {
  background: var(--bg);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.solution-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fffaf3;
  border: 1px solid rgba(171, 126, 62, 0.15);
  box-shadow: var(--shadow);
}

.solution-card img {
  width: 100%;
  height: 155px;
  object-fit: contain;
  background: linear-gradient(180deg, #f5eee4, #fffaf3);
  padding: 12px;
}

.solution-card div {
  padding: 18px 22px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.92), #fffaf3);
}

.solution-card h3,
.project-card h3,
.process-steps h3,
.why-grid h3 {
  margin: 0;
  color: #201811;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

.solution-card h3 {
  font-size: 20px;
}

.solution-card p,
.project-card p,
.process-steps p,
.why-grid p {
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.solution-card button,
.project-card button {
  border: 0;
  padding: 0;
  margin-top: 16px;
  color: #6f4a18;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-card button::after,
.project-card button::after {
  content: " ->";
}

.process-band {
  padding: 34px clamp(32px, 5vw, 86px) 42px;
  background: linear-gradient(180deg, #fbf4ea, #f8ecdc);
  border-top: 1px solid rgba(171, 126, 62, 0.14);
  border-bottom: 1px solid rgba(171, 126, 62, 0.14);
}

.process-steps {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 26px;
  height: 1px;
  background: rgba(150, 105, 40, 0.4);
}

.process-steps article {
  position: relative;
  text-align: center;
  padding: 0 30px;
}

.step-num {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--gold);
  font-weight: 900;
}

.line-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border: 1px solid rgba(189, 133, 47, 0.42);
  border-radius: 50%;
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

.process-steps h3 {
  font-size: 19px;
}

.projects {
  background: var(--bg);
  padding-top: 30px;
}

.project-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fffaf3;
  border: 1px solid rgba(171, 126, 62, 0.15);
  box-shadow: var(--shadow);
}

.project-image {
  position: relative;
}

.project-image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.project-image span {
  position: absolute;
  left: 18px;
  bottom: 13px;
  color: #fff;
  padding: 5px 15px;
  border-radius: 999px;
  background: rgba(30, 21, 12, 0.76);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-copy {
  padding: 20px 24px 22px;
}

.project-card h3 {
  font-size: 21px;
}

.why {
  padding: 18px clamp(32px, 5vw, 86px) 44px;
  background: var(--bg);
}

.why-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.why-grid article {
  min-height: 170px;
  padding: 20px 18px;
  text-align: center;
  border-right: 1px solid rgba(171, 126, 62, 0.2);
}

.why-grid article:last-child {
  border-right: 0;
}

.why-grid span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--gold);
  border: 1px solid rgba(189, 133, 47, 0.42);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 900;
}

.why-grid h3 {
  font-size: 17px;
}

.testimonial {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  background: #f8efe3;
}

.testimonial__quote {
  min-height: 315px;
  padding: clamp(42px, 6vw, 72px) clamp(36px, 6vw, 86px);
  background: radial-gradient(circle at 20% 20%, rgba(189, 133, 47, 0.13), transparent 34%), #fbf5ec;
}

.quote-mark {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 70px;
  line-height: 0.6;
}

.testimonial p {
  max-width: 560px;
  margin: 20px 0 28px;
  color: #2b241c;
  font-size: 19px;
  line-height: 1.7;
  font-weight: 600;
}

.testimonial strong,
.testimonial small {
  display: block;
  color: #2b241c;
}

.testimonial small {
  margin-top: 6px;
  color: var(--muted);
}

.dots {
  display: flex;
  gap: 15px;
  margin-top: 38px;
}

.dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(189, 133, 47, 0.45);
}

.dots span:first-child {
  background: var(--gold);
}

.testimonial img {
  width: 100%;
  height: 100%;
  min-height: 315px;
  object-fit: cover;
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 0.51fr) minmax(420px, 0.49fr);
  background: #fbf5ec;
}

.quote-section__image {
  position: relative;
}

.quote-section__image img {
  width: 100%;
  height: 100%;
  min-height: 405px;
  object-fit: cover;
}

.metric-panel {
  position: absolute;
  left: 52px;
  right: 52px;
  bottom: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 22px 28px;
  border-radius: 5px;
  background: rgba(19, 17, 15, 0.84);
}

.metric-panel div {
  text-align: center;
  color: #fff;
}

.metric-panel strong {
  display: block;
  font-size: 31px;
}

.metric-panel span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
}

.lead-form {
  display: grid;
  gap: 13px;
  align-content: center;
  padding: clamp(38px, 5.8vw, 76px);
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.95), rgba(247, 236, 222, 0.92)), url("./assets/images/ouyee-design-drawing.webp");
  background-size: cover;
  background-position: center;
}

.lead-form h2 {
  max-width: 540px;
  font-size: clamp(33px, 3vw, 48px);
  line-height: 1.1;
}

.lead-form p {
  max-width: 520px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(150, 105, 40, 0.35);
  border-radius: 2px;
  padding: 12px 14px;
  color: #211a13;
  background: rgba(255, 250, 243, 0.68);
  outline: none;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(189, 133, 47, 0.14);
}

.submit-btn {
  width: min(410px, 100%);
  min-height: 47px;
  border-radius: 2px;
  font-size: 13px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #a73420;
  font-weight: 800;
}

.form-status.is-success {
  color: #24743c;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(230px, 1.3fr) minmax(210px, 1fr) repeat(3, minmax(120px, 0.8fr)) 120px;
  gap: 34px;
  align-items: start;
  padding: 42px clamp(32px, 5vw, 86px) 30px;
  color: #fff;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 32%), #161616;
}

.footer-brand img {
  width: 220px;
  height: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 310px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.footer-contact,
.footer-links {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.footer-links strong {
  color: #fff;
  text-transform: uppercase;
}

.qr-card {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.76);
}

.fake-qr {
  width: 86px;
  height: 86px;
  margin: 0 auto 8px;
  background:
    linear-gradient(90deg, #111 8px, transparent 8px 14px, #111 14px 20px, transparent 20px 26px, #111 26px 32px, transparent 32px),
    linear-gradient(#111 8px, transparent 8px 14px, #111 14px 20px, transparent 20px 26px, #111 26px 32px, transparent 32px),
    #fff;
  border: 7px solid #fff;
}

.copyright {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.is-open {
  display: grid;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal__dialog {
  position: relative;
  width: min(610px, 100%);
  max-height: 92vh;
  overflow: auto;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #17120d;
  font-size: 27px;
}

.lead-form--modal {
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding-top: 56px;
}

@media (max-width: 1120px) {
  .site-header {
    height: auto;
    padding: 18px 24px;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 4px;
  }

  .hero,
  .testimonial,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .hero__image {
    min-height: 430px;
  }

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

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

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

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

  .wordmark {
    min-width: 0;
  }

  .wordmark__text {
    font-size: 22px;
  }

  .main-nav {
    display: none;
  }

  .nav-cta {
    min-width: 0;
    padding: 12px 14px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 38px 18px;
    min-width: 0;
  }

  .hero__content h1 {
    max-width: 100%;
    font-size: 33px;
    line-height: 1.18;
  }

  .hero__lead {
    max-width: 100%;
    font-size: 15px;
  }

  .hero__image {
    min-height: 300px;
  }

  .section,
  .process-band,
  .why {
    padding-left: 18px;
    padding-right: 18px;
  }

  .solution-grid,
  .project-grid,
  .process-steps,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .process-steps::before {
    display: none;
  }

  .why-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(171, 126, 62, 0.2);
  }

  .testimonial__quote,
  .lead-form {
    padding: 36px 18px;
  }

  .form-row,
  .metric-panel {
    grid-template-columns: 1fr;
  }

  .metric-panel {
    position: static;
    border-radius: 0;
  }

  .quote-section__image img {
    min-height: 280px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 34px 18px 24px;
  }
}
