/* =====================================================================
   栖光 QĪGUĀNG — stylesheet
   ===================================================================== */

:root {
  --paper: #f3ede3;
  --paper-2: #ebe2d3;
  --paper-3: #e2d6c4;
  --ink: #1b1814;
  --ink-2: #3d362e;
  --muted: #8a7f70;
  --line: rgba(27, 24, 20, 0.14);
  --line-light: rgba(243, 237, 227, 0.18);
  --terra: #ad4f2e;
  --teal: #2e4642;
  --cream: #f6f0e5;

  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  --latin: "Didot", "Bodoni 72", "Times New Roman", var(--serif);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

::selection { background: var(--terra); color: var(--cream); }

.wrap {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(90px, 12vw, 170px) 0; }

/* ---------- grain + cursor ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.09'/></svg>");
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border: 1px solid rgba(27, 24, 20, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 300;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s, opacity .3s;
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor span {
  position: absolute;
  top: 50%; left: 50%;
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--ink);
}
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 64px; height: 64px; background: rgba(246, 240, 229, 0.92); border-color: transparent; }
.cursor.is-link span { opacity: 0; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px var(--gutter);
  color: var(--cream);
  transition: background .5s var(--ease), color .5s, padding .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 14px var(--gutter);
  color: var(--ink);
  background: rgba(243, 237, 227, 0.88);
  backdrop-filter: blur(18px) saturate(1.1);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .22em; }
.brand-text i { font-style: normal; font-size: 8px; letter-spacing: .28em; opacity: .62; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a { font-size: 12px; letter-spacing: .08em; position: relative; padding: 4px 0; opacity: .86; }
.nav-links a span { font-size: 9px; letter-spacing: .05em; opacity: .5; margin-right: 5px; vertical-align: 1px; }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .12em;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background .4s var(--ease), color .4s, border-color .4s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav.scrolled .nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-burger { display: none; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 660px;
  max-height: 1100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--cream);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: brightness(.82) saturate(.96) contrast(1.02);
  transform: scale(1.02);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1.09); } }

.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 15, 12, .52) 0%, rgba(18, 15, 12, 0) 26%, rgba(18, 15, 12, 0) 44%, rgba(18, 15, 12, .82) 100%),
    linear-gradient(90deg, rgba(18, 15, 12, .45) 0%, rgba(18, 15, 12, 0) 60%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(140px, 17vh, 200px); }
.eyebrow {
  font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 26px;
  opacity: .84;
}
.eyebrow span { opacity: .45; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.1rem, 7.6vw, 8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 .em {
  font-style: italic;
  font-family: var(--display);
  letter-spacing: 0;
  position: relative;
  padding: 0 .06em;
}
.hero h1 .em::after {
  content: "";
  position: absolute; left: 4%; right: 2%; bottom: .1em;
  height: 1px; background: rgba(246, 240, 229, .5);
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.9;
  max-width: 30em;
  color: rgba(246, 240, 229, .8);
}
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 38px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 12px; letter-spacing: .12em;
  border: 1px solid transparent;
  transition: transform .4s var(--ease), background .4s, color .4s, border-color .4s;
}
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-solid { background: var(--cream); color: var(--ink); }
.btn-solid:hover { background: var(--terra); color: var(--cream); }
.btn-ghost { border-color: rgba(246, 240, 229, .38); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(246, 240, 229, .1); }

.hero-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 4vw, 64px);
  padding-bottom: 28px;
  border-top: 1px solid rgba(246, 240, 229, .2);
  padding-top: 18px;
  font-size: 11px;
  letter-spacing: .06em;
}
.hero-meta div { color: rgba(246, 240, 229, .72); }
.hero-meta div span { display: block; font-size: 9px; letter-spacing: .22em; opacity: .55; margin-bottom: 3px; }
.hero-meta-note { margin-left: auto; opacity: .6; }

/* =====================================================================
   INTRO
   ===================================================================== */
.intro { padding: clamp(70px, 9vw, 130px) 0; background: var(--paper); }
.intro-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: start;
}
.sec-no {
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  padding-top: 10px;
  white-space: nowrap;
}
.sec-no span { opacity: .5; }
.sec-no.light { color: rgba(246, 240, 229, .5); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.6vw, 4.8rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
}
.intro-main .lead {
  margin-top: 30px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2;
}

.stats { display: grid; gap: 26px; padding-top: 14px; }
.stats > div { border-top: 1px solid var(--line); padding-top: 14px; }
.stats dt {
  font-family: var(--display);
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.stats dt small { font-size: .3em; letter-spacing: .1em; margin-left: 6px; font-family: var(--sans); }
.stats dd { font-size: 11px; letter-spacing: .16em; color: var(--muted); margin-top: 8px; }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about { background: var(--paper-2); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}
.about-media { position: sticky; top: 110px; }
.about-media figure { position: relative; }
.about-media img { aspect-ratio: 4 / 5; object-fit: cover; }
.about-media figcaption {
  font-size: 11px; letter-spacing: .08em; color: var(--muted);
  margin-top: 12px; display: flex; justify-content: space-between;
}
.about-tag {
  position: absolute; top: 18px; left: 18px;
  font-size: 9px; letter-spacing: .2em;
  background: rgba(243, 237, 227, .9);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
}

.about-copy h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.28;
  font-weight: 500;
  margin: 18px 0 30px;
  letter-spacing: -.01em;
}
.about-copy p { color: var(--ink-2); max-width: 38em; margin-bottom: 18px; }
.about-facts {
  display: flex; gap: clamp(24px, 4vw, 56px);
  margin: 40px 0 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.about-facts li { display: flex; flex-direction: column; gap: 4px; }
.about-facts b { font-family: var(--display); font-size: 30px; font-weight: 500; line-height: 1; }
.about-facts span { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.sign {
  font-family: var(--display);
  font-style: italic;
  font-size: 34px;
  letter-spacing: .02em;
}
.sign span { color: var(--terra); padding: 0 6px; }

/* =====================================================================
   CASE
   ===================================================================== */
.case { background: var(--paper); }
.case-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 76px);
}
.case-head .display { margin-top: 16px; }
.case-intro { color: var(--ink-2); font-size: 14px; line-height: 1.95; max-width: 32em; justify-self: end; }

.case-gallery {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  grid-template-rows: auto auto;
  gap: clamp(14px, 2vw, 28px);
}
.cg { position: relative; overflow: hidden; }
.cg img { transition: transform 1.2s var(--ease); }
.cg:hover img { transform: scale(1.04); }
.cg figcaption {
  position: absolute; left: 18px; bottom: 16px;
  color: var(--cream);
  font-size: 11px; letter-spacing: .06em;
  display: flex; gap: 10px; align-items: baseline;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}
.cg figcaption b { font-weight: 600; letter-spacing: .16em; }
.cg-a { grid-row: span 2; }
.cg-a img { aspect-ratio: 4 / 6.05; }
.cg-b img { aspect-ratio: 4 / 2.7; }
.cg-c img { aspect-ratio: 4 / 3.1; }

.case-spec {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.case-spec ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, auto));
  gap: 20px 56px;
}
.case-spec li { display: flex; flex-direction: column; gap: 3px; }
.case-spec li span { font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.case-spec li b { font-weight: 500; font-size: 14px; letter-spacing: .04em; }

.link-btn {
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .14em;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
  transition: color .3s, border-color .3s;
}
.link-btn .arr { transition: transform .4s var(--ease); }
.link-btn:hover { color: var(--terra); border-color: var(--terra); }
.link-btn:hover .arr { transform: translate(3px, -3px); }
.link-btn.light { color: var(--cream); border-color: rgba(246, 240, 229, .4); }
.link-btn.light:hover { color: #fff; border-color: var(--cream); }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(0, 0, 0, .1);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 34px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 34px);
  letter-spacing: .02em;
  white-space: nowrap;
}
.marquee-track i { font-style: normal; color: var(--terra); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   3D SPACE
   ===================================================================== */
.space {
  background: #14120f;
  color: var(--cream);
  padding: clamp(80px, 10vw, 150px) 0 clamp(40px, 5vw, 70px);
  position: relative;
}
.space-head { margin-bottom: clamp(28px, 4vw, 46px); }
.space-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.space-title-row h2 { font-size: clamp(2.6rem, 5vw, 5.2rem); }
.space-title-row p {
  color: rgba(246, 240, 229, .6);
  font-size: 13px;
  line-height: 1.9;
  max-width: 26em;
  padding-bottom: 8px;
}

.space-stage-wrap { padding: 0 var(--gutter); }
.stage {
  position: relative;
  width: min(1600px, 100%);
  height: clamp(520px, 76vh, 820px);
  margin: 0 auto;
  border-radius: 3px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 8%, #fbf6ec 0%, #eee4d4 44%, #ddcdb8 100%);
  transition: background 1.2s var(--ease);
  isolation: isolate;
  touch-action: none;
}
.stage.is-night {
  background:
    radial-gradient(120% 100% at 50% 10%, #2b3345 0%, #1a1e2a 45%, #0e1016 100%);
}
.stage-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 42%, rgba(255, 255, 255, .35), transparent 70%);
  mix-blend-mode: soft-light;
}
#scene-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
#scene-canvas:active { cursor: grabbing; }

.stage-meta {
  position: absolute; top: 24px; left: 26px;
  z-index: 5;
  pointer-events: none;
}
.stage-kicker { font-size: 11px; letter-spacing: .18em; color: rgba(27, 24, 20, .78); }
.stage-sub { font-size: 10px; letter-spacing: .12em; color: rgba(27, 24, 20, .45); margin-top: 3px; }
.stage-plan-btn {
  pointer-events: auto;
  margin-top: 14px;
  background: rgba(246, 240, 229, .55);
  border: 1px solid rgba(27, 24, 20, .18);
  backdrop-filter: blur(10px);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.stage-plan-btn span { opacity: .5; margin-left: 3px; }
.stage-plan-btn:hover { background: rgba(27, 24, 20, .9); color: var(--cream); }

.stage-tools {
  position: absolute; top: 22px; right: 22px;
  z-index: 6;
  display: flex; gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(246, 240, 229, .62);
  border: 1px solid rgba(27, 24, 20, .12);
  backdrop-filter: blur(14px);
}
.tool {
  border: 0; background: transparent;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 11px; letter-spacing: .08em;
  color: rgba(27, 24, 20, .72);
  cursor: pointer;
  transition: background .35s, color .35s;
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.tool:hover { background: rgba(255, 255, 255, .5); }
.tool.is-active { background: var(--ink); color: var(--cream); }
.tool-night .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #d9873f;
  box-shadow: 0 0 0 3px rgba(217, 135, 63, .16);
  transition: box-shadow .4s, background .4s;
}

.stage-hint {
  position: absolute; left: 26px; bottom: 26px;
  z-index: 5;
  display: flex; align-items: center; gap: 9px;
  font-size: 10px; letter-spacing: .1em;
  color: rgba(27, 24, 20, .5);
  pointer-events: none;
}
.mouse {
  width: 14px; height: 20px;
  border: 1px solid rgba(27, 24, 20, .4);
  border-radius: 8px;
  position: relative;
}
.mouse::after {
  content: "";
  position: absolute; left: 50%; top: 4px;
  width: 2px; height: 4px;
  background: currentColor;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 8px); } }

.compass {
  position: absolute; right: 28px; bottom: 26px;
  z-index: 4;
  width: 34px; height: 34px;
  border: 1px solid rgba(27, 24, 20, .18);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 8px; letter-spacing: .1em;
  color: rgba(27, 24, 20, .55);
  pointer-events: none;
}
.compass i { position: absolute; top: 3px; width: 1px; height: 6px; background: var(--terra); }

.labels { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.room-label {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 8px;
  border-radius: 999px;
  background: rgba(246, 240, 229, .72);
  border: 1px solid rgba(27, 24, 20, .12);
  backdrop-filter: blur(8px);
  font-size: 10px; letter-spacing: .08em;
  color: rgba(27, 24, 20, .8);
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
  transition: opacity .3s, transform .3s, background .3s, color .3s;
  opacity: 0;
}
.room-label.is-visible { opacity: 1; }
.room-label:hover { background: var(--ink); color: var(--cream); }
.room-label .ld { width: 4px; height: 4px; border-radius: 50%; background: var(--terra); }
.room-label em { font-style: normal; font-size: 9px; opacity: .55; }

.room-chips {
  position: absolute; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex; gap: 3px;
  max-width: min(820px, calc(100% - 220px));
  overflow-x: auto;
  padding: 4px;
  border-radius: 999px;
  background: rgba(246, 240, 229, .55);
  border: 1px solid rgba(27, 24, 20, .1);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}
.room-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 0; background: transparent;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 10px; letter-spacing: .06em;
  color: rgba(27, 24, 20, .66);
  cursor: pointer;
  transition: background .3s, color .3s;
}
.chip:hover { background: rgba(255, 255, 255, .5); }
.chip.is-active { background: var(--ink); color: var(--cream); }

.room-card {
  position: absolute; right: 22px; bottom: 78px;
  z-index: 8;
  width: 312px;
  max-height: calc(100% - 130px);
  overflow-y: auto;
  background: rgba(247, 242, 233, .94);
  color: var(--ink);
  border: 1px solid rgba(27, 24, 20, .1);
  backdrop-filter: blur(20px);
  padding: 0 22px 22px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  scrollbar-width: thin;
}
.room-card.is-open { opacity: 1; transform: none; pointer-events: auto; }
.rc-close {
  position: absolute; right: 10px; top: 8px;
  z-index: 2;
  width: 28px; height: 28px;
  border: 0; background: rgba(247, 242, 233, .8);
  border-radius: 50%;
  font-size: 18px; line-height: 1;
  cursor: pointer;
  color: rgba(27, 24, 20, .6);
}
.rc-media { margin: 0 -22px; height: 128px; overflow: hidden; background: var(--paper-3); }
.rc-media img { width: 100%; height: 100%; object-fit: cover; }
.rc-media.is-empty { display: none; }
.rc-body { padding-top: 16px; }
.rc-no { font-size: 9px; letter-spacing: .24em; color: var(--muted); }
.room-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-top: 2px; letter-spacing: .04em; }
.rc-en { font-size: 8px; letter-spacing: .24em; color: var(--muted); margin-top: 3px; }
.rc-lead { font-size: 12px; color: var(--terra); margin: 14px 0 8px; letter-spacing: .02em; }
.rc-desc { font-size: 12px; line-height: 1.85; color: var(--ink-2); }
.rc-area { font-family: var(--display); font-size: 26px; margin-top: 14px; }
.rc-area span { font-size: 34px; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.rc-tags li {
  font-size: 9px; letter-spacing: .06em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--ink-2);
}

.stage.is-night .stage-kicker,
.stage.is-night .stage-sub,
.stage.is-night .stage-hint,
.stage.is-night .compass { color: rgba(246, 240, 229, .62); }
.stage.is-night .compass,
.stage.is-night .stage-hint .mouse { border-color: rgba(246, 240, 229, .25); }
.stage.is-night .stage-tools,
.stage.is-night .room-chips,
.stage.is-night .room-label,
.stage.is-night .stage-plan-btn {
  background: rgba(20, 22, 28, .55);
  border-color: rgba(246, 240, 229, .14);
  color: rgba(246, 240, 229, .78);
}
.stage.is-night .tool:hover,
.stage.is-night .chip:hover { background: rgba(246, 240, 229, .08); }
.stage.is-night .tool.is-active,
.stage.is-night .chip.is-active { background: var(--cream); color: var(--ink); }
.stage.is-night .room-card { background: rgba(26, 28, 34, .92); color: var(--cream); border-color: rgba(246, 240, 229, .12); }
.stage.is-night .room-card .rc-desc,
.stage.is-night .room-card .rc-tags li { color: rgba(246, 240, 229, .72); }
.stage.is-night .room-card .rc-tags li { border-color: rgba(246, 240, 229, .18); }
.stage.is-night .rc-close { background: rgba(26, 28, 34, .7); color: rgba(246, 240, 229, .7); }
.stage.is-night .stage-plan-btn:hover { background: var(--cream); color: var(--ink); }

.stage-loading {
  position: absolute; inset: 0; z-index: 10;
  display: grid; place-content: center; justify-items: center; gap: 16px;
  background: #efe5d5;
  transition: opacity .8s var(--ease), visibility .8s;
}
.stage-loading.is-done { opacity: 0; visibility: hidden; }
.stage-loading p { font-size: 10px; letter-spacing: .2em; color: rgba(27, 24, 20, .55); }
.loader-line {
  width: 120px; height: 1px;
  background: rgba(27, 24, 20, .16);
  position: relative; overflow: hidden;
}
.loader-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--terra);
  transform: translateX(-100%);
  animation: load 1.6s infinite var(--ease);
}
@keyframes load { 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }

.stage-error {
  position: absolute; inset: 0; z-index: 11;
  display: grid; place-items: center;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 13px;
  text-align: center;
  padding: 40px;
}

.space-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px;
  gap: 20px;
  flex-wrap: wrap;
}
.space-foot p { font-size: 10px; letter-spacing: .06em; color: rgba(246, 240, 229, .4); }

/* =====================================================================
   GALLERY
   ===================================================================== */
.gallery { background: var(--paper); }
.gallery-head {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, .7fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: start;
  margin-bottom: clamp(34px, 5vw, 60px);
}
.gallery-note { justify-self: end; font-size: 12px; color: var(--muted); line-height: 1.9; padding-top: 12px; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
}
.g { position: relative; overflow: hidden; cursor: zoom-in; }
.g img { transition: transform 1.2s var(--ease), filter 1.2s; }
.g:hover img { transform: scale(1.03); }
.g figcaption {
  position: absolute; left: 16px; bottom: 14px;
  display: flex; align-items: baseline; gap: 10px;
  color: var(--cream);
  font-size: 11px; letter-spacing: .06em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.g figcaption b { font-weight: 500; font-size: 9px; letter-spacing: .2em; border: 1px solid rgba(246, 240, 229, .5); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.g1 img { aspect-ratio: 4 / 5; }
.g2 { margin-top: 96px; }
.g2 img { aspect-ratio: 4 / 5.2; }
.g3 { margin-top: -40px; }
.g3 img { aspect-ratio: 1 / 1; }
.g4 { margin-top: 42px; }
.g4 img { aspect-ratio: 4 / 3.3; }
.g5 { grid-column: 1 / -1; margin-top: 40px; }
.g5 img { aspect-ratio: 16 / 7.4; }

/* =====================================================================
   PALETTE
   ===================================================================== */
.palette { background: var(--paper-2); }
.palette-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.palette-copy h2 { margin: 18px 0 26px; }
.palette-copy p { color: var(--ink-2); max-width: 30em; }
.palette-copy blockquote {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
  color: var(--ink);
}
.swatches { display: grid; }
.swatches li {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  grid-template-areas: "chip name hex" "chip use use";
  gap: 0 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.swatches li:last-child { border-bottom: 1px solid var(--line); }
.swatches i {
  grid-area: chip;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(0, 0, 0, .06);
  transition: transform .4s var(--ease);
}
.swatches li:hover i { transform: scale(1.08); }
.swatches b { grid-area: name; font-weight: 500; font-size: 15px; letter-spacing: .04em; }
.swatches span { grid-area: hex; font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.swatches em { grid-area: use; font-style: normal; font-size: 11px; color: var(--muted); }

/* =====================================================================
   SERVICE
   ===================================================================== */
.service { background: var(--paper); }
.service-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .6fr);
  gap: 50px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.service-head .display { margin-top: 16px; }
.service-head > p { color: var(--ink-2); font-size: 14px; line-height: 1.95; max-width: 26em; justify-self: end; }

.service-list { border-top: 1px solid var(--line); }
.service-list li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 160px;
  gap: 30px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .4s;
}
.service-list li:hover { background: rgba(235, 226, 211, .55); }
.s-no { font-family: var(--display); font-size: 15px; color: var(--muted); padding-top: 6px; }
.service-list h3 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; margin-bottom: 10px; }
.service-list p { color: var(--ink-2); font-size: 13.5px; max-width: 40em; }
.service-list ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.service-list ul li { display: block; padding: 0; border: 0; font-size: 11px; color: var(--muted); }
.service-list ul li::before { content: "—"; margin-right: 7px; opacity: .5; }
.s-meta { font-size: 10px; letter-spacing: .14em; color: var(--muted); text-align: right; padding-top: 10px; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact { background: #17140f; color: var(--cream); padding: clamp(80px, 10vw, 150px) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.contact-copy h2 { margin: 16px 0 24px; }
.contact-copy > p { color: rgba(246, 240, 229, .62); font-size: 14px; line-height: 1.95; }
.contact-info { margin-top: 46px; border-top: 1px solid var(--line-light); }
.contact-info li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 12px;
}
.contact-info span { font-size: 9px; letter-spacing: .2em; color: rgba(246, 240, 229, .4); }
.contact-info b { font-weight: 400; letter-spacing: .06em; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 9px; letter-spacing: .2em; color: rgba(246, 240, 229, .45); }
.field input, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(246, 240, 229, .22);
  padding: 8px 0 12px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  border-radius: 0;
  transition: border-color .3s;
  resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(246, 240, 229, .28); }
.field input:focus, .field textarea:focus { border-color: var(--cream); }
.field input.is-error { border-color: var(--terra); }
.btn-wide { grid-column: 1 / -1; justify-content: center; margin-top: 8px; }
.btn-wide:hover { background: var(--terra); color: var(--cream); }
.form-note { grid-column: 1 / -1; font-size: 10px; letter-spacing: .04em; color: rgba(246, 240, 229, .32); }
.form-ok {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #b9d3a8;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s, transform .4s;
}
.form-ok.is-on { opacity: 1; transform: none; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--paper); padding: 56px 0 26px; }
.footer-top {
  display: flex; align-items: center; gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.footer-brand .brand-mark { width: 34px; height: 34px; font-size: 16px; }
.footer-line { font-family: var(--serif); font-size: 20px; letter-spacing: .06em; }
.footer-nav { margin-left: auto; display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 11px; letter-spacing: .12em; color: var(--ink-2); }
.footer-nav a:hover { color: var(--terra); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 9px; letter-spacing: .12em; color: var(--muted); }

/* =====================================================================
   LIGHTBOX + MODAL + TOAST
   ===================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(14, 12, 10, .95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: min(1100px, 82vw); margin: 0; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.lightbox figcaption { color: rgba(246, 240, 229, .6); font-size: 11px; letter-spacing: .1em; text-align: center; margin-top: 16px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: transparent; border: 1px solid rgba(246, 240, 229, .25);
  color: var(--cream);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: background .3s, border-color .3s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(246, 240, 229, .12); border-color: var(--cream); }
.lb-close { top: 26px; right: 30px; }
.lb-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 30px; top: 50%; transform: translateY(-50%); }

.modal {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(20, 17, 13, .62);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-box {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  width: min(1000px, 100%);
  max-height: 88vh;
  background: var(--paper);
  overflow: hidden;
  transform: translateY(16px);
  transition: transform .5s var(--ease);
}
.modal.is-open .modal-box { transform: none; }
.modal-media { background: #ded3c2; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: contain; }
.modal-copy { padding: clamp(26px, 4vw, 50px); overflow-y: auto; }
.modal-copy h3 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; margin: 12px 0 18px; }
.modal-copy p { font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.modal-copy ul { margin-top: 26px; border-top: 1px solid var(--line); }
.modal-copy li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.modal-copy li span { color: var(--muted); letter-spacing: .12em; font-size: 10px; }
.modal-close {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(243, 237, 227, .9);
  border: 0; cursor: pointer; font-size: 20px; line-height: 1;
}

.toast {
  position: fixed; left: 50%; bottom: 34px;
  transform: translate(-50%, 20px);
  background: var(--ink); color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 11px; letter-spacing: .08em;
  z-index: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal[data-delay="1"].in { transition-delay: .1s; }
.reveal[data-delay="2"].in { transition-delay: .2s; }
.reveal[data-delay="3"].in { transition-delay: .3s; }
.reveal[data-delay="4"].in { transition-delay: .4s; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .nav-links { gap: 20px; }
  .intro-grid { grid-template-columns: 100px minmax(0, 1.4fr) minmax(0, 1fr); }
  .stage { height: clamp(520px, 68vh, 720px); }
  .room-chips { max-width: calc(100% - 180px); }
}

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { position: static; max-width: 560px; }
  .about-media img { aspect-ratio: 4 / 4.2; }
  .case-head { grid-template-columns: 1fr; }
  .case-intro { justify-self: start; }
  .palette-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-head { grid-template-columns: 1fr; gap: 18px; }
  .service-head > p { justify-self: start; }
  .gallery-head { grid-template-columns: 90px 1fr; }
  .gallery-note { grid-column: 2; justify-self: start; padding-top: 0; }
  .intro-grid { grid-template-columns: 80px 1fr; }
  .stats { grid-column: 2; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
  .service-list li { grid-template-columns: 56px minmax(0, 1fr); }
  .s-meta { grid-column: 2; text-align: left; padding-top: 0; }
  .stage-meta { top: 18px; left: 18px; }
  .stage-tools { top: 16px; right: 16px; flex-wrap: wrap; justify-content: flex-end; max-width: 300px; }
  .tool { padding: 7px 11px; font-size: 10px; }
  .stage-hint { left: 18px; bottom: 84px; }
  .compass { display: none; }
  .room-chips { bottom: 18px; max-width: calc(100% - 36px); width: calc(100% - 36px); }
  .room-card { right: 16px; bottom: 78px; width: 292px; }
}

@media (max-width: 780px) {
  :root { --gutter: 20px; }
  body { font-size: 14px; }
  .nav { padding: 16px var(--gutter); gap: 16px; }
  .nav-links {
    position: fixed; inset: 0;
    background: var(--paper);
    color: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 80px var(--gutter);
    transform: translateY(-100%);
    transition: transform .6s var(--ease);
    z-index: -1;
  }
  .nav.open .nav-links { transform: none; }
  .nav-links a { font-size: 28px; font-family: var(--serif); letter-spacing: .06em; opacity: 1; }
  .nav-links a span { font-size: 10px; margin-right: 10px; }
  .nav-cta { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px;
    margin-left: auto;
    background: none; border: 0; padding: 10px; cursor: pointer;
    z-index: 2;
  }
  .nav-burger i { width: 22px; height: 1px; background: currentColor; transition: transform .4s, opacity .4s; }
  .nav.open .nav-burger i:first-child { transform: translateY(3px) rotate(45deg); }
  .nav.open .nav-burger i:last-child { transform: translateY(-3px) rotate(-45deg); }
  .nav.open { color: var(--ink); background: var(--paper); }

  .hero { min-height: 620px; }
  .hero-inner { padding-bottom: 130px; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: 10px; }
  .hero-meta-note { display: none; }
  .hero-sub { font-size: 13px; }

  .intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .intro-grid .sec-no { padding-top: 0; }
  .stats { grid-column: auto; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .stats dt { font-size: 34px; }

  .case-gallery { grid-template-columns: 1fr; }
  .cg-a { grid-row: auto; }
  .cg-a img { aspect-ratio: 4 / 4.6; }
  .cg figcaption { left: 12px; bottom: 10px; font-size: 10px; }
  .case-spec ul { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
  .case-spec { align-items: start; }

  .gallery-grid { grid-template-columns: 1fr; gap: 18px; }
  .g2, .g3, .g4, .g5 { margin-top: 0; }
  .g1 img { aspect-ratio: 4 / 4.4; }
  .g2 img { aspect-ratio: 4 / 4.4; }
  .g3 img { aspect-ratio: 4 / 3.6; }
  .g4 img { aspect-ratio: 4 / 3.4; }
  .g5 img { aspect-ratio: 4 / 3.6; }
  .gallery-head { grid-template-columns: 1fr; gap: 10px; }
  .gallery-note { grid-column: auto; }

  .palette-copy blockquote { font-size: 18px; }

  .contact-form { grid-template-columns: 1fr; }
  .field-full, .btn-wide, .form-note, .form-ok { grid-column: auto; }

  .footer-top { gap: 18px; }
  .footer-nav { margin-left: 0; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  .stage { height: 66vh; min-height: 460px; }
  .stage-meta .stage-sub { display: none; }
  .stage-tools { top: 12px; right: 12px; max-width: 220px; }
  .tool { padding: 6px 9px; font-size: 9px; }
  .tool-night .label { display: none; }
  .stage-hint { display: none; }
  .room-card {
    width: auto; left: 12px; right: 12px; bottom: 74px;
    max-height: 52%;
    padding: 0 18px 18px;
  }
  .rc-media { margin: 0 -18px; height: 96px; }
  .room-chips { width: calc(100% - 24px); max-width: none; bottom: 12px; }
  .space-foot { flex-direction: column; align-items: flex-start; }

  .service-list li { padding: 26px 0; grid-template-columns: 42px 1fr; gap: 14px; }
  .service-list ul { gap: 4px 14px; }

  .modal { padding: 12px; }
  .modal-box { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-media { max-height: 38vh; }
  .modal-media img { object-fit: contain; }
  .modal-copy { padding: 22px; }

  .lightbox figure { max-width: 88vw; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; } .lb-close { right: 12px; top: 12px; }

  .cursor { display: none; }
  .grain { opacity: .3; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.6rem; }
  .stats dt { font-size: 28px; }
  .stage-tools { max-width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

section[id] { scroll-margin-top: 74px; }

.stage-error[hidden] { display: none; }

.stage-plan-btn { color: rgba(27, 24, 20, .82); }
.room-label { padding: 4px 9px 4px 7px; font-size: 9.5px; background: rgba(246, 240, 229, .66); }
.room-label em { font-size: 8px; }

.stage.has-selection .room-label { opacity: 0 !important; }

.room-card.card-left { right: auto; left: 22px; }
@media (max-width: 780px) {
  .room-card.card-left { right: 12px; left: 12px; }
}
.room-card { width: 296px; }
.rc-media { height: 112px; }

/* nav collapse — earlier than the layout breakpoint so six links never crowd */
@media (max-width: 980px) {
  .nav { padding: 16px var(--gutter); gap: 16px; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--paper);
    color: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 80px var(--gutter);
    transform: translateY(-100%);
    transition: transform .6s var(--ease);
    z-index: 1;
    margin-left: 0;
  }
  .nav.open .nav-links { transform: none; }
  .nav-links a { font-size: 28px; font-family: var(--serif); letter-spacing: .06em; opacity: 1; }
  .nav-links a span { font-size: 10px; margin-right: 10px; }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px;
    margin-left: auto;
    background: none; border: 0; padding: 10px; cursor: pointer;
    position: relative; z-index: 3;
  }
  .nav-burger i { width: 22px; height: 1px; background: currentColor; transition: transform .4s, opacity .4s; display: block; }
  .nav.open .nav-burger i:first-child { transform: translateY(3px) rotate(45deg); }
  .nav.open .nav-burger i:last-child { transform: translateY(-3px) rotate(-45deg); }
  .nav.open { color: var(--ink); background: var(--paper); }
  .brand { position: relative; z-index: 3; }
}

/* ---------- mobile refinements ---------- */
.brk { display: inline; }

@media (max-width: 980px) {
  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(243, 237, 227, .96); }
  .nav-links { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .nav { transition: background .4s; }
}

@media (max-width: 780px) {
  .hero h1 { font-size: clamp(2.55rem, 12.4vw, 3.4rem); }
  .brk { display: block; }
  .labels { display: none; }
  .tool[data-view="overview"], #autoRotate { display: none; }
  .stage-tools { max-width: none; }
  .tool { padding: 8px 12px; font-size: 10px; }
  .tool-night .label { display: inline; }
  .stage-meta { top: 16px; left: 16px; }
  .stage-meta .stage-kicker { font-size: 10px; }
  .stage-plan-btn { margin-top: 10px; padding: 6px 10px; font-size: 9px; }
  .stage-tools { top: 14px; right: 12px; }
  .room-card { max-height: 58%; bottom: 70px; }
  .rc-media { height: 84px; }
  .room-card h3 { font-size: 21px; }
  .rc-desc { font-size: 11.5px; }
  .rc-area { font-size: 22px; margin-top: 10px; }
  .rc-area span { font-size: 28px; }
  .rc-lead { margin: 10px 0 6px; font-size: 11.5px; }
}

.nav-contact-m { display: none; }
@media (max-width: 980px) {
  .nav-contact-m { display: block; }
}

.modal-notes { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.modal-notes-title { font-size: 9px !important; letter-spacing: .2em; color: var(--muted) !important; margin-bottom: 10px; }
.modal-notes ol li {
  display: flex; gap: 12px;
  padding: 8px 0;
  border-bottom: 0;
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.7;
  justify-content: flex-start;
}
.modal-notes ol li i { font-style: normal; font-family: var(--display); color: var(--terra); font-size: 11px; padding-top: 1px; }

/* =====================================================================
   NEW: before / after, room gallery, product grid, wider nav
   ===================================================================== */

@media (max-width: 1100px) {
  .nav { padding: 16px var(--gutter); gap: 16px; }
  .nav-links {
    position: fixed; inset: 0;
    background: var(--paper); color: var(--ink);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 8px; padding: 80px var(--gutter);
    transform: translateY(-100%);
    transition: transform .6s var(--ease);
    z-index: 1; margin-left: 0;
  }
  .nav.open .nav-links { transform: none; }
  .nav-links a { font-size: 28px; font-family: var(--serif); letter-spacing: .06em; opacity: 1; }
  .nav-links a span { font-size: 10px; margin-right: 10px; }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .nav-contact-m { display: block; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: 0; padding: 10px; cursor: pointer;
    position: relative; z-index: 3;
  }
  .nav-burger i { width: 22px; height: 1px; background: currentColor; transition: transform .4s, opacity .4s; display: block; }
  .nav.open .nav-burger i:first-child { transform: translateY(3px) rotate(45deg); }
  .nav.open .nav-burger i:last-child { transform: translateY(-3px) rotate(-45deg); }
  .nav.open { color: var(--ink); background: var(--paper); }
  .brand { position: relative; z-index: 3; }
}

.beforeafter {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.ba-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 30px; margin-bottom: 26px; flex-wrap: wrap;
}
.ba-head h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  margin-top: 12px; letter-spacing: -.01em;
}
.ba-head > p { max-width: 30em; font-size: 12px; line-height: 1.9; color: var(--muted); padding-bottom: 4px; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.ba-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-img span {
  position: absolute; top: 9px; left: 9px;
  font-size: 8px; letter-spacing: .18em;
  padding: 4px 7px;
  background: rgba(27, 24, 20, .55); color: var(--cream);
  backdrop-filter: blur(6px);
}
.ba-img:last-child span { background: var(--terra); }
.ba-card figcaption {
  display: flex; gap: 12px; align-items: baseline;
  margin-top: 10px; font-size: 11px; color: var(--muted); line-height: 1.7;
}
.ba-card figcaption b {
  font-family: var(--serif); font-size: 17px; font-weight: 500;
  color: var(--ink); white-space: nowrap; letter-spacing: .02em;
}

.room-gallery { column-count: 3; column-gap: 24px; }
.rg {
  break-inside: avoid;
  margin: 0 0 24px;
  position: relative; overflow: hidden;
  cursor: zoom-in; background: var(--paper-3);
}
.rg img { width: 100%; height: auto; display: block; transition: transform 1.2s var(--ease); }
.rg:hover img { transform: scale(1.03); }
.rg figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  color: var(--cream); font-size: 10px; letter-spacing: .08em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
}
.rg figcaption b { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: .04em; }
.rg figcaption span { opacity: .75; text-align: right; }

.product { background: #16130f; color: var(--cream); }
.product-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: clamp(30px, 4vw, 48px); flex-wrap: wrap;
}
.product-head h2 { margin-top: 16px; }
.product-head > p {
  max-width: 30em; font-size: 13px; line-height: 1.95;
  color: rgba(246, 240, 229, .55); padding-bottom: 6px;
}
.product .sec-no { color: rgba(246, 240, 229, .45); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.p-card {
  position: relative; overflow: hidden; cursor: zoom-in;
  background: #221e18; margin: 0;
}
.p-card img {
  aspect-ratio: 4 / 5; object-fit: cover;
  filter: saturate(.94);
  transition: transform 1.1s var(--ease), filter 1.1s;
}
.p-card:hover img { transform: scale(1.04); filter: saturate(1.05); }
.p-card figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 9.5px; letter-spacing: .08em;
  color: rgba(246, 240, 229, .85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.p-card figcaption b { font-weight: 500; }
.p-card figcaption span { opacity: .55; }

@media (max-width: 1100px) {
  .room-gallery { column-count: 2; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .ba-head { gap: 12px; }
  .ba-grid { grid-template-columns: 1fr; gap: 22px; }
  .ba-card figcaption { flex-direction: column; gap: 2px; }
  .ba-card figcaption b { font-size: 16px; }
  .room-gallery { column-count: 1; column-gap: 0; }
  .rg { margin-bottom: 18px; }
  .rg figcaption b { font-size: 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .product-head { gap: 14px; }
  .p-card figcaption { font-size: 8.5px; left: 9px; right: 9px; bottom: 8px; }
  .p-card figcaption span { display: none; }
}

/* 3D 初始化完成前不显示标签，避免加载淡出时闪一下 */
.stage:not(.is-ready) .labels { opacity: 0; }
.labels { transition: opacity .6s var(--ease); }


@media (max-width: 980px) { .about-media { position: relative; top: auto; } }

/* =====================================================================
   RIGHT QUICK NAV
   ===================================================================== */
@media (min-width: 1201px) {
  .wrap { padding-right: calc(var(--gutter) + 54px); }
}

.quick-nav {
  position: fixed;
  top: 50%;
  right: 12px;
  z-index: 90;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 44px;
  padding: 10px 0;
  border-left: 1px solid var(--line);
  background: rgba(243, 237, 227, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.quick-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 6px 0 6px 9px;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color .25s, opacity .25s;
}
.quick-nav a span {
  font-size: 7px;
  letter-spacing: .08em;
  opacity: .5;
}
.quick-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .25s, width .25s;
}
.quick-nav a:hover { color: var(--ink); }
.quick-nav a.is-active { color: var(--terra); }
.quick-nav a.is-active::before { opacity: 1; width: 6px; }
.quick-nav a.is-active span { opacity: .8; }

@media (max-width: 1200px) {
  .quick-nav { display: none; }
}
