:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: rgba(14, 19, 26, 0.72);
  --panel-strong: rgba(18, 25, 35, 0.92);
  --text: #f4f1ea;
  --muted: #a7b0bb;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #d9b36c;
  --accent-soft: rgba(217, 179, 108, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(180deg, rgba(217, 179, 108, 0.08), transparent 360px),
    linear-gradient(180deg, #07090d 0%, #0b0f14 48%, #090c11 100%);
  color: var(--text);
}

.contact-bar,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px max(24px, calc((100% - 1200px) / 2));
  border-bottom: 1px solid rgba(217, 179, 108, 0.24);
  background: rgba(14, 19, 26, 0.96);
  color: var(--text);
}

.contact-bar p,
.site-footer p {
  margin: 0;
}

.contact-bar-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.contact-bar a,
.site-footer a {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.contact-bar a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 8px;
  border-top: 1px solid rgba(217, 179, 108, 0.24);
  border-bottom: 0;
  padding-top: 24px;
  padding-bottom: 24px;
  background: rgba(9, 12, 17, 0.98);
}

.page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: start;
  padding: 38px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(6, 8, 12, 0.92) 0%, rgba(6, 8, 12, 0.68) 42%, rgba(6, 8, 12, 0.16) 100%),
    url("./assets/backgrounds/silk-hero.jpg") center center / cover no-repeat;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-top: 4px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
}

.nav, .section, .about, .lightbox {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.carousel {
  margin: 0 0 24px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.carousel-stage {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 520px;
}

.carousel-track {
  position: relative;
  min-height: 520px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 380ms ease, transform 380ms ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 10, 14, 0.45);
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
}

.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 14px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  padding: 0;
  transition: width 180ms ease, background-color 180ms ease;
}

.carousel-dots button.active {
  width: 28px;
  background: var(--accent);
}

.about {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
  margin: 0 0 24px;
  padding: 42px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 10, 14, 0.96) 0%, rgba(7, 10, 14, 0.88) 48%, rgba(7, 10, 14, 0.52) 100%),
    url("./assets/backgrounds/about-fabric.jpg") center / cover no-repeat;
}

.about::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(217, 179, 108, 0.12), transparent 42%);
  pointer-events: none;
}

.about-copy,
.about-media {
  position: relative;
  z-index: 1;
}

.about h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.about p {
  margin: 0 0 12px;
  max-width: 860px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.about p:last-child {
  margin-bottom: 0;
}

.about-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 0;
}

.about-media img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #11161d;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  filter: saturate(0.82) contrast(1.04);
}

.about-media img:first-child {
  aspect-ratio: 4 / 5;
}

.about-media img:last-child {
  aspect-ratio: 4 / 5;
  transform: translateY(28px);
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  gap: 10px;
  padding: 12px;
  margin: 18px 0 24px;
  border-radius: 18px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
}
.nav a:hover { border-color: var(--accent-soft); background: var(--accent-soft); }

.section {
  margin-bottom: 22px;
  border-radius: 24px;
  overflow: hidden;
}

.section-head {
  padding: 20px 22px 0;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 18px 22px 22px;
}

.card {
  margin: 0;
  cursor: zoom-in;
}

.card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover img {
  transform: translateY(-2px);
  border-color: rgba(217, 179, 108, 0.4);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(5, 8, 12, 0.88);
  z-index: 50;
}

.lightbox.open { display: grid; }

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  border-radius: 22px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: white;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

@media (max-width: 860px) {
  .contact-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .hero {
    min-height: 240px;
    padding: 26px;
  }
  .about {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .about-media img:last-child {
    transform: translateY(16px);
  }
  .carousel-stage,
  .carousel-track {
    min-height: 420px;
  }
  .slide img {
    height: 420px;
  }
  .nav { overflow-x: auto; }
  .section-head { align-items: start; flex-direction: column; }
}

@media (max-width: 560px) {
  .contact-bar-links,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .hero {
    min-height: 210px;
    padding: 20px;
  }
  .about {
    padding: 24px 20px;
  }
  .about-media {
    gap: 10px;
  }
  .carousel {
    padding: 10px;
  }
  .carousel-stage,
  .carousel-track {
    min-height: 320px;
  }
  .slide img {
    height: 320px;
  }
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}
