:root {
  color-scheme: dark;
  --ink: #f4f1e9;
  --muted: rgba(244, 241, 233, 0.68);
  --line: rgba(244, 241, 233, 0.22);
  --accent: #d8a84d;
  --page-x: clamp(24px, 6vw, 96px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #081c21;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: #081c21;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(5, 22, 27, 0.96) 0%, rgba(5, 22, 27, 0.83) 37%, rgba(5, 22, 27, 0.36) 72%, rgba(5, 22, 27, 0.62) 100%),
    linear-gradient(0deg, rgba(5, 22, 27, 0.9) 0%, transparent 35%),
    url("assets/city-architecture.jpg");
  background-position: center;
  background-size: cover;
}

.page-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(216, 168, 77, 0.05), transparent 34%);
}

.page-shell::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 49.5%;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(transparent 13%, var(--line) 13%, var(--line) 87%, transparent 87%);
}

.site-header,
.site-footer,
.hero {
  position: relative;
  z-index: 3;
  padding-inline: var(--page-x);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 112px;
  background: rgba(247, 247, 244, 0.96);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.brand {
  display: block;
  width: clamp(320px, 35vw, 510px);
  max-width: 100%;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(56px, 8vw, 140px);
  padding-top: clamp(42px, 8vh, 92px);
  padding-bottom: clamp(42px, 8vh, 92px);
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.6px;
}

.eyebrow span {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--accent);
}

h1 {
  margin: 0 0 20px;
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(44px, 5.2vw, 80px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.headline {
  margin: 0;
  color: rgba(244, 241, 233, 0.92);
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(25px, 2.3vw, 38px);
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: 0;
}

.hero-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 2px;
}

.contact-panel {
  align-self: end;
  width: min(100%, 610px);
  margin-left: auto;
  padding-bottom: 4px;
}

.contact-intro {
  display: grid;
  grid-template-columns: auto minmax(36px, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}

.contact-index {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
}

.contact-rule {
  height: 1px;
  background: var(--line);
}

.contact-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
}

.contact-list {
  display: grid;
  gap: 28px;
}

.contact-item {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.contact-item p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.contact-item a {
  display: inline-block;
  max-width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 46px);
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.12;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.contact-item a:hover,
.contact-item a:focus-visible {
  color: var(--accent);
  transform: translateX(4px);
  outline: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--line);
  color: rgba(244, 241, 233, 0.48);
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  outline: none;
}

@media (max-width: 860px) {
  .page-shell {
    min-height: 100svh;
    overflow: auto;
    background-image:
      linear-gradient(180deg, rgba(5, 22, 27, 0.72) 0%, rgba(5, 22, 27, 0.92) 48%, rgba(5, 22, 27, 0.98) 100%),
      url("assets/city-architecture.jpg");
    background-position: 58% center;
  }

  .page-shell::after {
    display: none;
  }

  .site-header {
    min-height: 92px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    gap: clamp(52px, 9vh, 84px);
    padding-top: clamp(54px, 9vh, 90px);
    padding-bottom: 54px;
  }

  .hero-copy,
  .contact-panel {
    width: 100%;
  }

  .contact-panel {
    margin-left: 0;
  }

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

  .contact-item a {
    font-size: clamp(25px, 5vw, 38px);
  }
}

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

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

  .hero {
    gap: 54px;
    padding-top: 52px;
    padding-bottom: 40px;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 9px;
    letter-spacing: 1.6px;
  }

  h1 {
    margin-bottom: 15px;
    font-size: clamp(42px, 13.2vw, 60px);
  }

  .headline {
    font-size: clamp(24px, 7.2vw, 32px);
  }

  .hero-note {
    margin-top: 22px;
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .contact-intro {
    margin-bottom: 28px;
  }

  .contact-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-item {
    padding-bottom: 23px;
  }

  .contact-item a {
    font-size: clamp(27px, 8.6vw, 38px);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    min-height: 84px;
  }
}

@media (max-width: 370px) {
  .contact-item a {
    font-size: 26px;
  }
}

@media (max-height: 720px) and (min-width: 861px) {
  .site-header {
    min-height: 90px;
  }

  .hero {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .hero-note {
    margin-top: 18px;
  }

  .contact-list {
    gap: 18px;
  }

  .contact-item {
    padding-bottom: 18px;
  }

  .site-footer {
    min-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
