:root {
  --bg: #0a0b0d;
  --panel: #141518;
  --text: #ffffff;
  --muted: #a9a9a9;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --copper: #c5834e;
  --copper-dark: #a96e3e;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", "Noto Serif SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5vw;
  background: transparent;
  transition: background 0.45s ease, border-color 0.45s ease, backdrop-filter 0.45s ease;
}

.site-header.scrolled,
.site-header.menu-active {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 11, 13, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: max-content;
}

.brand-main {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
}

.brand-sub {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.icon-text:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.25s ease;
}

.icon-text:first-child:hover {
  color: var(--copper);
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 6px auto;
  background: var(--text);
  transition: transform 0.25s ease;
}

.menu-toggle.active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  background:
    linear-gradient(to bottom, rgba(10, 11, 13, 0.2) 0%, transparent 30%, transparent 60%, rgba(10, 11, 13, 0.6) 100%),
    linear-gradient(to right, rgba(10, 11, 13, 0.32), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5vw 12vh;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 400;
  line-height: 1.05;
}

.hero p {
  max-width: 480px;
  margin: 24px 0 0;
  color: var(--muted);
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
}

.hero-meta span,
.meta-label {
  color: var(--copper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-meta span:last-child {
  color: var(--muted);
}

.hero-meta i {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
}

.section {
  padding: 120px 5vw;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  margin-bottom: 64px;
}

.section-title .meta-label {
  display: block;
  margin-bottom: 12px;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 48px);
  font-weight: 400;
  line-height: 1.1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 32px;
}

.project-card {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-thumb img {
  transition: transform 0.7s ease;
}

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12));
  transition: background 0.35s ease;
}

.project-card:hover img {
  transform: scale(1.055);
}

.project-card:hover .project-plus {
  opacity: 1;
}

.project-info {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 24px;
}

.project-info h3 {
  margin: 6px 0 5px;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 500;
}

.project-info p,
.project-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.project-card > p {
  margin: 12px 0 0;
  font-size: 14px;
}

.project-plus {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.philosophy {
  position: relative;
  overflow: hidden;
}

.philosophy-bg,
.philosophy-shade {
  position: absolute;
  inset: 0;
}

.philosophy-bg {
  background: url("assets/images/philosophy-bg.jpg") center / cover no-repeat;
  opacity: 0.3;
}

.philosophy-shade {
  background: rgba(10, 11, 13, 0.7);
}

.philosophy-inner {
  position: relative;
  z-index: 1;
}

.philosophy-copy {
  margin-bottom: 80px;
  text-align: center;
}

.display-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
}

.philosophy-sub {
  margin: 32px 0 0;
  color: var(--muted);
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
  text-align: center;
}

.stats strong {
  display: block;
  color: var(--copper);
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 80px);
  font-weight: 400;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wide-video {
  height: 50vh;
  min-height: 340px;
  overflow: hidden;
  border-radius: 8px;
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.orbit {
  position: relative;
  width: min(400px, 78vw);
  height: min(400px, 78vw);
  margin: 0 auto;
  animation: spin 40s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  transform: translate(-50%, -50%);
}

.orbit span {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--copper);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  transform-origin: 0 0;
}

.service-list {
  display: grid;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  color: var(--text);
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.service-item:hover {
  padding-left: 8px;
  color: var(--copper);
}

.service-item span:last-child {
  color: var(--muted);
  font-family: var(--font-body);
}

.atmosphere {
  position: relative;
  margin: 8px 0;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
  border-radius: 16px;
}

.atmosphere p {
  position: absolute;
  right: 32px;
  bottom: 32px;
  max-width: 400px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team-card figure {
  aspect-ratio: 1 / 1;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 2px;
}

.team-card img {
  transition: transform 0.7s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-card h3 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 500;
}

.team-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.awards-layout,
.contact-layout,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.panel-heading span {
  color: var(--copper);
}

.panel-heading b {
  font-size: 12px;
  letter-spacing: 1.5px;
}

.timeline article {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.timeline strong {
  width: 60px;
  flex: 0 0 auto;
  color: var(--copper);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

.timeline span,
.publication-list p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.publication-list {
  display: grid;
  gap: 16px;
}

.publication-list p {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  color: var(--text);
  transition: border-color 0.25s ease;
}

.publication-list p:hover {
  border-color: rgba(197, 131, 78, 0.35);
}

.contact-form,
.guestbook form {
  display: grid;
  gap: 20px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  padding: 13px 16px;
  font-size: 14px;
  transition: border-color 0.25s ease;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
textarea:focus {
  border-color: var(--copper);
}

.primary-btn,
.outline-btn,
.newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  border: 1px solid var(--copper);
  padding: 12px 28px;
  background: var(--copper);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 1px;
  transition: background 0.25s ease, color 0.25s ease;
}

.primary-btn:hover,
.newsletter button:hover {
  background: var(--copper-dark);
}

.outline-btn {
  background: transparent;
  color: var(--copper);
  font-size: 12px;
}

.outline-btn:hover {
  background: var(--copper);
  color: var(--text);
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--copper);
  font-size: 13px;
}

.contact-info {
  display: grid;
  gap: 14px;
  margin-top: 48px;
}

.contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.contact-info p span:first-child,
.guestbook h3 span {
  color: var(--copper);
}

.guestbook h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 500;
}

.message-list {
  display: grid;
  gap: 12px;
  max-height: 300px;
  margin-top: 32px;
  overflow-y: auto;
  padding-right: 8px;
}

.message-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px;
  transition: border-color 0.25s ease;
}

.message-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.message-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.message-item strong {
  font-size: 13px;
}

.message-item time,
.message-item p {
  color: var(--muted);
  font-size: 12px;
}

.message-item p {
  margin: 0;
  line-height: 1.5;
}

.site-footer {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main {
  padding-bottom: 64px;
}

.footer-card {
  border: 1px solid var(--line-strong);
  padding: 28px;
}

.footer-card p {
  margin: 0 0 24px;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.8;
}

.footer-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.newsletter {
  margin-top: 32px;
}

.newsletter label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.newsletter div {
  display: flex;
}

.newsletter input {
  border-right: 0;
}

.newsletter button {
  flex: 0 0 auto;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}

.footer-links b,
.footer-links a {
  display: block;
}

.footer-links b {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.5px;
}

.footer-links a {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.watermark {
  margin: 0;
  padding-bottom: 16px;
  color: rgba(255, 255, 255, 0.03);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 4px;
  text-align: center;
  white-space: nowrap;
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 5vw;
  color: var(--muted);
  font-size: 11px;
}

.copyright a {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(900px, 100%);
  max-height: calc(100svh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 28px;
}

.modal-media {
  min-height: 420px;
}

.modal-copy {
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.modal-copy h3 {
  margin: 14px 0 18px;
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 500;
}

.modal-copy p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.8;
}

.modal-location,
.modal-desc {
  color: var(--muted) !important;
}

.modal-copy footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.modal-copy footer span {
  color: var(--muted);
  font-size: 11px;
}

.modal-copy footer a {
  color: var(--copper);
  font-size: 12px;
}

.chat-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--copper);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-size: 28px;
}

.chat-toggle.open {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-size: 24px;
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 60;
  display: none;
  flex-direction: column;
  width: min(360px, calc(100vw - 48px));
  height: 480px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.chat-panel.open {
  display: flex;
}

.chat-panel header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
}

.chat-panel header span {
  color: var(--copper);
}

.chat-panel header b {
  font-size: 14px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.chat-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 80%;
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
}

.chat-row.user .chat-bubble {
  background: var(--copper);
  color: var(--text);
}

.chat-panel form {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.chat-panel input {
  flex: 1;
  border: 0;
  padding: 8px;
  font-size: 13px;
}

.chat-panel button {
  border: 0;
  background: transparent;
  color: var(--copper);
  font-size: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 11, 13, 0.96);
    padding: 24px 5vw;
    backdrop-filter: blur(16px);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 13px 0;
  }

  .login-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .project-grid,
  .services-layout,
  .awards-layout,
  .contact-layout,
  .footer-grid,
  .modal-panel {
    grid-template-columns: 1fr;
  }

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

  .modal-media {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .brand-sub,
  .hero-meta i {
    display: none;
  }

  .hero {
    min-height: 600px;
  }

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

  .hero p {
    font-size: 15px;
  }

  .section {
    padding: 84px 5vw;
  }

  .project-grid {
    gap: 36px;
  }

  .stats,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .atmosphere {
    min-height: 380px;
    border-radius: 0;
  }

  .atmosphere p {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .team-grid {
    gap: 22px;
  }

  .footer-links,
  .copyright {
    flex-direction: column;
  }
}
