:root {
  color-scheme: light;
  --ink: #231c1a;
  --muted: #6f6661;
  --paper: #fffdf9;
  --surface: #f7f1e8;
  --line: #e8ded1;
  --brand: #6b241d;
  --brand-dark: #431512;
  --gold: #b6812f;
  --gold-light: #e8c98f;
  font-family:
    "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Helvetica Neue",
    Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

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

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  color: white;
  background: var(--brand);
  border-radius: 4px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 253 249 / 96%);
  border-bottom: 1px solid rgb(107 36 29 / 10%);
  backdrop-filter: blur(16px);
}

.topline {
  color: #f7ede4;
  background: var(--brand-dark);
  font-size: 13px;
}

.topline-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

.topline a:hover,
.topline a:focus-visible {
  color: var(--gold-light);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 84px;
  gap: 32px;
}

.brand {
  flex: 0 1 360px;
}

.brand img {
  width: min(360px, 100%);
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 30px;
  font-size: 15px;
  font-weight: 600;
}

nav a {
  position: relative;
  white-space: nowrap;
}

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

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

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 3px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.header-cta,
.primary-button {
  color: white;
  background: var(--brand);
}

.header-cta:hover,
.primary-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 15%, rgb(232 201 143 / 32%), transparent 30%),
    linear-gradient(135deg, #fffaf1 0%, #f5e9d9 100%);
}

.hero::before {
  position: absolute;
  top: -220px;
  right: -120px;
  width: 600px;
  height: 600px;
  content: "";
  border: 1px solid rgb(182 129 47 / 18%);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: center;
  min-height: 610px;
  gap: 90px;
  padding-block: 100px;
}

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

.hero h1,
.section-heading h2,
.about-copy h2,
.contact-section h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.2;
}

.hero-description {
  max-width: 690px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.secondary-button {
  color: var(--brand);
  background: transparent;
  border: 1px solid rgb(107 36 29 / 32%);
}

.secondary-button:hover {
  background: rgb(107 36 29 / 6%);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.hero-facts {
  display: flex;
  gap: 44px;
  margin: 46px 0 0;
}

.hero-facts div {
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 13px;
}

.hero-facts dd {
  margin: 2px 0 0;
  font-weight: 700;
}

.hero-card {
  position: relative;
  padding: 52px 32px;
  color: #fff8ed;
  text-align: center;
  background:
    linear-gradient(rgb(67 21 18 / 88%), rgb(67 21 18 / 96%)),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgb(255 255 255 / 4%) 8px,
      rgb(255 255 255 / 4%) 9px
    );
  border: 1px solid rgb(182 129 47 / 50%);
  box-shadow: 0 24px 70px rgb(67 21 18 / 20%);
}

.hero-card::before,
.hero-card::after {
  position: absolute;
  width: 44px;
  height: 44px;
  content: "";
}

.hero-card::before {
  top: 12px;
  left: 12px;
  border-top: 1px solid var(--gold-light);
  border-left: 1px solid var(--gold-light);
}

.hero-card::after {
  right: 12px;
  bottom: 12px;
  border-right: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
}

.hero-seal {
  display: grid;
  width: 92px;
  height: 92px;
  margin: 0 auto 28px;
  color: var(--brand-dark);
  font-family: "Songti SC", "STSong", serif;
  font-size: 29px;
  font-weight: 800;
  background: var(--gold-light);
  border-radius: 50%;
  place-items: center;
}

.hero-card p {
  margin: 0 0 6px;
  color: #e8cfad;
}

.hero-card strong {
  font-size: 20px;
}

.service-section,
.about-section,
.team-section,
.contact-section {
  padding-block: 100px;
  scroll-margin-top: 118px;
}

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

.section-heading h2,
.about-copy h2,
.contact-section h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.25;
}

.section-heading > p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  grid-column: span 2;
  min-height: 245px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.service-card:hover {
  border-color: rgb(182 129 47 / 50%);
  box-shadow: 0 18px 45px rgb(67 21 18 / 8%);
  transform: translateY(-4px);
}

.service-index {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.service-card h3 {
  margin: 42px 0 12px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 25px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.about-section {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 100px;
}

.about-copy > p:not(.eyebrow) {
  max-width: 710px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.feature-list span {
  padding: 7px 13px;
  color: var(--brand);
  background: rgb(107 36 29 / 7%);
  border: 1px solid rgb(107 36 29 / 14%);
  font-size: 14px;
  font-weight: 700;
}

.principles {
  padding: 36px;
  color: white;
  background: var(--brand-dark);
}

.principles > p {
  margin: 0 0 26px;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.principles ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.principles li span {
  color: var(--gold-light);
  font-family: Georgia, serif;
}

.team-section {
  color: white;
  background: #27100e;
}

.light-heading .eyebrow,
.light-heading > p {
  color: #d8b374;
}

.team-image {
  overflow: hidden;
  margin: 0;
  background: #e8b849;
  border: 1px solid rgb(232 201 143 / 35%);
}

.team-image img {
  width: 100%;
  height: auto;
}

.contact-section {
  background:
    linear-gradient(rgb(255 253 249 / 94%), rgb(255 253 249 / 94%)),
    radial-gradient(circle at center, var(--gold-light), transparent 55%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 0.65fr 1fr;
  align-items: stretch;
  gap: 20px;
}

.contact-grid > div:first-child {
  padding-right: 40px;
}

.contact-grid > div:first-child > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  padding: 28px;
  background: var(--surface);
  border-top: 3px solid var(--gold);
}

.contact-card span {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.contact-card a {
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
}

.contact-card address {
  font-style: normal;
  font-weight: 700;
}

footer {
  color: #d8cbc4;
  background: #1b0c0b;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 144px;
}

.footer-inner img {
  width: 210px;
}

.footer-inner div {
  text-align: right;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #bdaea7;
  font-size: 13px;
}

.footer-inner a:hover {
  color: var(--gold-light);
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-block: 14px;
  }

  .brand {
    flex-basis: calc(100% - 140px);
  }

  nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    gap: 24px;
    overflow-x: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: auto;
    padding-block: 72px;
  }

  .hero-card {
    max-width: 520px;
  }

  .service-card,
  .service-card:nth-child(4) {
    grid-column: span 3;
  }

  .service-card:last-child {
    grid-column: 2 / span 4;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-grid {
    gap: 48px;
  }

  .principles {
    max-width: 640px;
  }

  .contact-grid > div:first-child {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .topline-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 8px;
    line-height: 1.45;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: auto;
  }

  .brand {
    flex-basis: 100%;
  }

  .brand img {
    width: 300px;
  }

  .header-cta {
    display: none;
  }

  nav {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 14px;
  }

  .hero-grid {
    padding-block: 60px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-facts {
    flex-direction: column;
    gap: 18px;
  }

  .hero-card {
    padding: 42px 24px;
  }

  .service-section,
  .about-section,
  .team-section,
  .contact-section {
    padding-block: 72px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
  }

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

  .service-card,
  .service-card:nth-child(4),
  .service-card:last-child {
    grid-column: auto;
    min-height: auto;
  }

  .service-card h3 {
    margin-top: 26px;
  }

  .about-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .principles {
    padding: 28px 24px;
  }

  .team-image {
    overflow-x: auto;
  }

  .team-image img {
    width: 800px;
    max-width: none;
  }

  .contact-card {
    min-height: 125px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 36px;
  }

  .footer-inner div {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
