:root {
  --accent: #c9b99f;
  --ink: #f2f1ed;
  --muted: #a09e99;
  --line: #343638;
  --panel: #1b1c1e;
  --shell: min(1080px, calc(100% - 64px));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; scrollbar-color: #5a5c5e #141516; color-scheme: dark; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: #141516; font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", Arial, sans-serif; letter-spacing: 0; }
body.intro-active { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #141516; }
::-webkit-scrollbar-thumb { border: 3px solid #141516; border-radius: 8px; background: #5a5c5e; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.loading-screen, .error-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; background: #141516; }
.loading-screen span { color: var(--muted); font: 500 16px Georgia, serif; }
.error-screen button { min-height: 38px; border: 1px solid #3a3a3a; padding: 0 14px; color: var(--ink); background: transparent; cursor: pointer; }

.welcome-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; background: #111214; color: var(--ink); }
.welcome-inner { width: min(780px, calc(100% - 48px)); position: relative; padding-block: 52px; }
.welcome-kicker, .welcome-year { display: block; color: #706d68; font: 500 10px/1.4 Arial, sans-serif; }
.welcome-brand { display: block; margin-top: 17px; overflow: hidden; color: #f2efe8; font: 400 92px/1 Georgia, "Times New Roman", serif; }
.welcome-line { height: 1px; display: block; margin-top: 35px; overflow: hidden; background: #252525; }
.welcome-line i { width: 100%; height: 100%; display: block; background: var(--accent); transform: translateX(-101%); }
.welcome-year { margin-top: 13px; text-align: right; }
.welcome-screen.run .welcome-kicker { animation: introFade 700ms 100ms both; }
.welcome-screen.run .welcome-brand { animation: introBrand 900ms 220ms cubic-bezier(.2,.8,.2,1) both; }
.welcome-screen.run .welcome-line i { animation: introLine 950ms 420ms cubic-bezier(.2,.8,.2,1) both; }
.welcome-screen.run .welcome-year { animation: introFade 650ms 700ms both; }
.welcome-screen.exit { animation: introExit 850ms cubic-bezier(.76,0,.24,1) both; }

@keyframes introFade { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes introBrand { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes introLine { from { transform: translateX(-101%); } to { transform: translateX(0); } }
@keyframes introExit { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes pageRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes headerIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

.site-header { height: 76px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #55514b; border-radius: 50%; color: var(--ink); font: 500 14px Georgia, serif; }
.brand-mark.has-image { overflow: hidden; border-color: transparent; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand strong { font-size: 14px; font-weight: 600; }
.brand small { margin-left: -5px; color: var(--accent); font-size: 9px; font-weight: 600; }
body:not(.page-ready) .site-header { opacity: 0; }
body.page-ready .site-header { animation: headerIn 850ms 100ms both; }

.home-hero { min-height: 650px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.hero-background, .hero-overlay { position: absolute; inset: 0; }
.hero-background { z-index: -2; background: #1b1c1e url("/assets/luxury-black-silk.jpg") center 52% / cover no-repeat; box-shadow: inset 0 0 170px rgba(0,0,0,.52), inset 0 -100px 120px rgba(0,0,0,.28); }
.home-hero:not(.has-background) .hero-background { filter: grayscale(1) brightness(1.28); }
.hero-overlay { z-index: -1; background: #202123; opacity: .48; transition: opacity 900ms ease, background 900ms ease; }
.home-hero.has-background .hero-overlay { opacity: 1; background: rgba(10, 11, 12, .62); }
.hero-slide { position: absolute; inset: 0; opacity: 0; background-position: center; background-size: cover; transform: scale(1.04); transition: opacity 1300ms ease, transform 8s ease; }
video.hero-slide { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-content { min-height: 650px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; padding-block: 100px 120px; }
.hero-intro:empty { display: none; }
.home-hero h1 { max-width: 880px; margin: 0; font-family: "Songti SC", "STZhongsong", "Noto Serif SC", Georgia, serif; font-size: 62px; font-weight: 400; line-height: 1.2; letter-spacing: 0; text-wrap: balance; text-shadow: 0 2px 20px rgba(0,0,0,.28); }
.hero-intro { max-width: 560px; margin: 38px 0 0; padding-left: 18px; border-left: 1px solid #4a453d; color: #aaa69f; font-size: 20px; line-height: 1.65; }
.hero-scroll { position: absolute; left: 0; bottom: 70px; display: flex; align-items: center; gap: 12px; color: #565656; font: 500 9px Arial, sans-serif; }
.hero-scroll i { width: 46px; height: 1px; display: block; position: relative; overflow: hidden; background: #333; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: scrollLine 2.4s 3s ease-in-out infinite; }
.hero-media-controls { position: absolute; right: 0; bottom: 56px; display: flex; align-items: center; gap: 11px; }
.hero-media-controls button { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; padding: 0; color: #d8d5cf; background: rgba(18,19,20,.5); cursor: pointer; transition: border-color 180ms ease, color 180ms ease, transform 180ms ease; }
.hero-media-controls button:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.hero-media-controls > span { display: flex; align-items: center; gap: 7px; color: #777; font: 500 9px Arial, sans-serif; }
.hero-media-controls > span i { width: 30px; height: 1px; display: block; background: #555; }
.hero-media-controls b { font-weight: 500; }
@keyframes scrollLine { 0%,15% { transform: translateX(-100%); } 55%,70% { transform: translateX(0); } 100% { transform: translateX(100%); } }
body:not(.page-ready) .hero-content > * { opacity: 0; }
body.page-ready .home-hero h1 { animation: pageRise 1000ms 370ms cubic-bezier(.2,.7,.2,1) both; }
body.page-ready .hero-intro { animation: pageRise 850ms 540ms both; }
body.page-ready .hero-scroll { animation: pageRise 750ms 680ms both; }
body.page-ready .hero-media-controls:not([hidden]) { animation: pageRise 750ms 680ms both; }

.services-section { padding-block: 90px 140px; }
.services-meta { width: min(260px, 100%); display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 11px; border-bottom: 1px solid var(--line); color: #73716d; font: 500 9px Arial, sans-serif; }
.services-meta b { color: var(--accent); font-weight: 500; }
.service-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); gap: 16px; }
.service-card { min-width: 0; aspect-ratio: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; position: relative; overflow: hidden; padding: 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
a.service-card { transition: border-color 300ms ease, transform 400ms cubic-bezier(.2,.7,.2,1), box-shadow 400ms ease; }
a.service-card:hover { border-color: #6d665c; box-shadow: 0 18px 45px rgba(0,0,0,.24); transform: translateY(-5px); }
.service-media { width: 100%; min-height: 0; display: grid; place-items: center; overflow: hidden; border: 1px solid #303234; background: #202123; color: #85827d; font-family: Georgia, serif; font-size: 29px; }
.service-media img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.7) contrast(1.03); transition: transform 800ms cubic-bezier(.2,.7,.2,1), filter 500ms ease; }
a.service-card:hover .service-media img { transform: scale(1.035); filter: saturate(.9) contrast(1.03); }
.service-copy { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 4px 1px; }
.service-title { min-width: 0; margin: 0; overflow: hidden; font-family: "Songti SC", "STZhongsong", "Noto Serif SC", Georgia, serif; font-size: 18px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; transition: color 250ms ease; }
.service-action { flex: 0 0 auto; min-height: 28px; display: inline-flex; align-items: center; border: 1px solid #444648; border-radius: 3px; padding: 0 8px; color: #b9b6b0; font-size: 9px; white-space: nowrap; transition: color 250ms ease, border-color 250ms ease, transform 250ms ease; }
a.service-card:hover .service-title, a.service-card:hover .service-action { color: var(--accent); }
a.service-card:hover .service-action { border-color: var(--accent); transform: translateX(2px); }
.coming-soon { flex: 0 0 auto; color: #696866; font-size: 9px; white-space: nowrap; }
.empty-state { padding: 50px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 12px; }
body.motion-ready .service-card { opacity: 0; transform: translateY(28px); }
body.motion-ready .service-card.is-revealed { opacity: 1; transform: translateY(0); transition: opacity 800ms var(--reveal-delay, 0ms), transform 800ms var(--reveal-delay, 0ms) cubic-bezier(.2,.7,.2,1), border-color 300ms ease; }
body.motion-ready a.service-card.is-revealed:hover { transform: translateY(-4px); }

footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-info { display: inline-flex; align-items: baseline; gap: 5px; color: #aaa7a1; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.footer-inner strong { font-size: inherit; font-weight: 500; }
.footer-copy { color: inherit; font-size: inherit; }
.after-sales { margin-left: auto; color: #918e88; font-size: 13px; line-height: 1.5; text-align: right; white-space: nowrap; transition: color 180ms ease; }
.after-sales[href]:hover { color: var(--accent); }
.after-sales b { color: #e1ded7; font-size: 15px; font-weight: 500; }

a:focus-visible, button:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

@media (max-width: 820px) {
  :root { --shell: calc(100% - 40px); }
  .home-hero, .hero-content { min-height: 610px; }
  .home-hero h1 { font-size: 52px; }
  .hero-intro { font-size: 18px; }
  .service-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 30px); }
  .welcome-inner { width: calc(100% - 38px); }
  .welcome-brand { font-size: 52px; }
  .site-header { height: 62px; }
  .home-hero, .hero-content { min-height: 560px; }
  .hero-content { padding-block: 82px 72px; }
  .home-hero h1 { font-size: 39px; line-height: 1.28; }
  .hero-intro { max-width: none; margin-top: 32px; padding-left: 14px; font-size: 17px; }
  .hero-scroll { display: none; }
  .hero-media-controls { right: 0; bottom: 24px; }
  .services-section { padding-block: 64px 90px; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .service-card { padding: 6px; }
  .service-media { font-size: 20px; }
  .service-copy { min-height: 52px; gap: 6px; padding: 7px 2px 1px; }
  .service-title { font-size: 15px; }
  .service-action { min-height: 25px; padding-inline: 6px; }
  .service-action, .coming-soon { white-space: nowrap; }
  .footer-inner { min-height: 118px; align-items: flex-start; padding-block: 30px; }
  .footer-inner { flex-direction: column; gap: 18px; }
  .after-sales { align-self: flex-end; font-size: 13px; }
  .after-sales b { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .welcome-screen { display: none; }
  body:not(.page-ready) .site-header, body:not(.page-ready) .hero-content > *, body.motion-ready .service-card { opacity: 1; transform: none; }
}
