/* Shared tokens and exhibition hero; responsive rules deliberately live last. */
:root {
  color-scheme: dark;
  --ink: #f4f1eb;
  --muted: #bdb8ae;
  --line: #34312c;
  --gold: #d9b07b;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "SF Pro Display", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: #080909; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #080909; font: 16px/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button,a { -webkit-tap-highlight-color: transparent; }
button:focus-visible,a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
button:disabled { cursor: default; opacity: .45; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; background: #222; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.showcase { position: relative; min-height: 760px; height: min(960px, 100svh); isolation: isolate; overflow: hidden; }
.gallery-bg,.gallery-light,.gallery-floor,.noise { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.gallery-bg { background: linear-gradient(90deg,rgba(2,3,3,.83),rgba(2,3,3,.35) 50%,rgba(2,3,3,.15)),url('./assets/gallery-bg.webp') center/cover; filter: saturate(.65); }
.gallery-light { background: radial-gradient(ellipse at 80% 8%,rgba(206,159,97,.12),transparent 45%); }
.gallery-floor { background: linear-gradient(180deg,transparent 68%,#080909); }
.noise { display: none; }
.topbar { position: relative; z-index: 3; display: flex; align-items: center; gap: clamp(20px,3vw,54px); height: 84px; padding-inline: clamp(20px,3.5vw,64px); border-bottom: 1px solid rgba(230,215,192,.1); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; color: var(--gold); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-name { font-size: 14px; }
.brand-name strong { font: 700 28px/1 Georgia,serif; margin-right: 6px; }
.main-nav { display: flex; justify-content: center; gap: clamp(18px,2.5vw,40px); margin-inline: auto; white-space: nowrap; }
.main-nav a { color: var(--muted); font-size: 14px; padding: 12px 0; }
.main-nav a:hover,.main-nav a.active { color: var(--ink); }
.nav-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.consult-btn { display: flex; gap: 24px; padding: 10px 20px; border: 1px solid #62513b; border-radius: 999px; font-size: 14px; }
.grid-btn { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 50%; }
.grid-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.hero-copy { position: absolute; z-index: 2; top: 25%; left: 4%; width: 27%; }
.eyebrow { color: var(--gold); font-size: 12px; letter-spacing: .12em; }
.eyebrow b,.eyebrow i { display: none; }
.hero-copy h1 { margin: 24px 0; font: 400 clamp(34px,3.4vw,64px)/1.32 var(--serif); letter-spacing: .01em; }
.hero-copy h1 span { color: var(--gold); white-space: nowrap; }
.hero-copy p { color: #c9c3b9; font-size: 15px; line-height: 1.9; margin: 0; }
.immerse-link { display: inline-flex; align-items: center; gap: 24px; margin-top: 32px; padding: 11px 12px 11px 22px; border: 1px solid #a17d4c; border-radius: 999px; color: var(--gold); font-size: 14px; }
.immerse-link b { display: grid; place-items: center; border: 1px solid #806745; border-radius: 50%; width: 30px; height: 30px; font-weight: 400; }
.cards-viewport { position: absolute; inset: 128px 3% 140px 34%; perspective: 1500px; }
.cards-scene { position: absolute; inset: 0; transform-style: preserve-3d; }
.project-card { position: absolute; z-index: 1; cursor: pointer; }
.project-card:hover,.project-card:focus-within { z-index: 2; }
.card-shell { position: relative; height: 100%; transition: transform .35s ease; }
.project-card .browser-frame { position: absolute; inset: 0 0 70px; overflow: hidden; border: 1px solid rgba(227,208,180,.4); border-radius: 6px; background: #161717; }
.browser-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; filter: brightness(.96); transition: transform .45s ease; }
.project-card:hover img { transform: scale(1.025); }
.browser-bar { position: absolute; z-index: 1; top: 0; left: 0; right: 0; display: flex; gap: 5px; padding: 7px 9px; background: linear-gradient(#101010b0,transparent); pointer-events: none; }
.browser-bar i { width: 4px; height: 4px; border-radius: 50%; background: #bfa982; }
.browser-bar span,.browser-bar b,.screen-caption { display: none; }
.case-copy,.case-copy.overlay { position: absolute; inset: auto 0 0; height: 61px; padding: 0; }
.case-no { display: none; }
.case-copy h2 { margin: 0; font-size: clamp(13px,1.15vw,19px); line-height: 1.45; font-weight: 500; }
.case-copy p { margin: 4px 0 0; color: var(--gold); font-size: 12px; line-height: 1.5; }
.case-copy a { position: absolute; inset: 0; font-size: 0; }
.case-copy a span { display: none; }
.card-01 { left: 0; top: 0; width: 40%; height: 57%; }
.card-02 { left: 44%; top: 10%; width: 25%; height: 48%; }
.card-03 { left: 73%; top: 5%; width: 27%; height: 53%; }
.card-04 { left: 0; top: 61%; width: 35%; height: 45%; }
.card-05 { left: 40%; top: 63%; width: 28%; height: 43%; }
.card-06 { left: 73%; top: 63%; width: 27%; height: 43%; }
.card-01 .browser-frame { transform: perspective(900px) rotateY(-7deg) rotateZ(1deg); }
.card-02 .browser-frame { transform: perspective(900px) rotateY(6deg) rotateZ(-2deg); }
.card-03 .browser-frame { transform: perspective(900px) rotateY(-5deg) rotateZ(2deg); }
.card-04 .browser-frame { transform: perspective(900px) rotateY(-5deg) rotateZ(-1deg); }
.card-05 .browser-frame { transform: perspective(900px) rotateY(5deg) rotateZ(1deg); }
.card-06 .browser-frame { transform: perspective(900px) rotateY(-4deg) rotateZ(-1deg); }
.card-04 img { object-position: center; }
.chapter-rail { position: absolute; left: 4%; bottom: 142px; display: flex; gap: 6px; z-index: 2; }
.chapter-line { display: none; }
.chapter-rail button { width: 34px; height: 34px; background: transparent; border: 0; color: #a39e96; font-size: 13px; }
.chapter-rail button.active { color: var(--gold); border-bottom: 1px solid var(--gold); }
.sound-toggle,.motion-toggle { position: absolute; left: 4%; bottom: 38px; display: inline-flex; gap: 10px; align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 13px; }
.sound-bars,.music-icon { display: none; }
.scroll-hint { display: none; }
.enter-work { position: absolute; right: 4%; bottom: 30px; display: flex; gap: 36px; align-items: center; padding: 14px 22px; border: 1px solid #4e4232; border-radius: 6px; }
.enter-work span { display: grid; gap: 3px; }
.enter-work strong { font-size: 16px; font-weight: 400; }
.enter-work small { color: var(--muted); font-size: 12px; }
.enter-work b { color: var(--gold); font-size: 24px; font-weight: 400; }
.render-paused *, .render-paused *::before, .render-paused *::after { animation-play-state: paused !important; transition: none !important; scroll-behavior: auto !important; }
@media (max-width: 1100px) {
  .topbar { padding-inline: 24px; gap: 24px; }
  .consult-btn { display: none; }
  .hero-copy { width: 29%; }
  .hero-copy p { font-size: 14px; }
  .cards-viewport { left: 36%; right: 3%; }
  .case-copy h2 { font-size: 14px; }
}
@media (max-width: 900px) {
  .showcase { height: auto; min-height: 0; padding-bottom: 108px; }
  .topbar { height: 72px; justify-content: space-between; gap: 16px; padding-inline: 20px; }
  .brand-name strong { font-size: 25px; }
  .main-nav { gap: 20px; margin-left: auto; margin-right: 0; }
  .main-nav a { font-size: 13px; }
  .hero-copy { position: relative; inset: auto; width: auto; padding: 52px 24px 38px; }
  .hero-copy h1 { font-size: clamp(34px,6vw,48px); margin: 16px 0; }
  .hero-copy h1 br { display: none; }
  .hero-copy h1 span { margin-left: .2em; }
  .hero-copy p br { display: none; }
  .immerse-link { margin-top: 22px; }
  .cards-viewport { position: relative; inset: auto; height: 330px; padding: 0 24px 12px; overflow-x: auto; perspective: none; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #665336 transparent; }
  .cards-scene { position: relative; inset: auto; width: max-content; height: 100%; display: flex; gap: 22px; transform: none !important; }
  .project-card { position: relative; inset: auto; width: 260px; height: 100%; flex: 0 0 260px; scroll-snap-align: center; translate: none !important; }
  .project-card .card-shell,.project-card .browser-frame { transform: none !important; }
  .case-copy h2 { font-size: 16px; }
  .chapter-rail { display: none; }
  .motion-toggle,.sound-toggle { left: 24px; bottom: 32px; }
  .enter-work { right: 24px; bottom: 26px; padding: 10px 16px; }
  .enter-work small { display: none; }
}
@media (max-width: 600px) {
  .main-nav { display: none; }
  .hero-copy { padding: 38px 20px 30px; }
  .hero-copy h1 br { display: block; }
  .hero-copy h1 span { margin-left: 0; }
  .hero-copy h1 { font-size: 40px; }
  .hero-copy p { font-size: 14px; }
  .cards-viewport { height: 300px; padding-inline: 20px; }
  .project-card { width: min(76vw,280px); flex-basis: min(76vw,280px); }
  .enter-work { right: 20px; gap: 16px; }
  .motion-toggle,.sound-toggle { left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
