:root {
  --bg: #070707;
  --ink: #f4f1ea;
  --muted: #b7b1a6;
  --line: rgba(244, 241, 234, 0.14);
  --gold: #c6a85a;
  --gold-2: #e6d3a1;
  --header: rgba(7, 7, 7, 0.94);
  color-scheme: dark;
}

html.scheme-b {
  --bg: #efeae2;
  --ink: #171717;
  --muted: #5c564e;
  --line: rgba(23, 23, 23, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; }
a { color: inherit; }
::selection { background: #c6a85a; color: #111; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { left: 12px; }

.nav {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: 92px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  color: #f4f1ea;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
}
.nav.is-solid,
html.page-b .nav,
html.scheme-b .nav,
html.gallery .nav {
  background: var(--header);
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 76px; width: auto; }
.nav nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav nav a {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.14em;
}
.nav nav a.is-current { color: var(--gold-2); }
.mail {
  color: var(--gold-2);
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.mail-in { display: none; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  color: #f4f1ea;
  border: 1px solid rgba(244, 241, 234, 0.35);
  min-height: 40px;
  padding: 0 14px;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  letter-spacing: 0.28em;
  font-size: 12px;
}
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: 1.12; margin: 0 0 18px; }
h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.25; margin: 0 0 12px; }
.lead, .prose p { color: var(--muted); font-size: 17px; line-height: 1.9; }
.lead { max-width: 40em; margin: 0 0 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  background: transparent;
  text-decoration: none;
  letter-spacing: 0.16em;
  cursor: pointer;
}
.btn:hover { background: var(--gold); color: #141414; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero, .chapter, .stage { scroll-snap-align: start; }
html.page-a { scroll-snap-type: y proximity; }

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 7vw 128px;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(198, 168, 90, 0.2), transparent 36%),
    #070707;
}
.hero h1 { max-width: 11em; }
.rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 0 0 22px; }

.chapter {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #070707;
  color: #f4f1ea;
  border-top: 1px solid rgba(244, 241, 234, 0.1);
}
.chapter.reverse .chapter-visual { order: 2; }
.chapter-visual, .chapter-copy {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 7vw 64px;
}
.chapter-visual {
  border-right: 1px solid rgba(244, 241, 234, 0.1);
  background:
    radial-gradient(circle at 30% 40%, rgba(198, 168, 90, 0.14), transparent 42%),
    #0c0c0c;
}
.chapter.reverse .chapter-visual { border-right: 0; border-left: 1px solid rgba(244, 241, 234, 0.1); }
.chapter.reverse .chapter-copy { justify-content: center; }
.giant {
  margin: 0;
  font-size: clamp(96px, 14vw, 200px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px #c6a85a;
  font-weight: 500;
}
.en { margin: 18px 0 0; letter-spacing: 0.42em; font-size: 13px; color: #f4f1ea; }
.chapter-copy p { color: #b7b1a6; max-width: 36em; }
.chapter-copy .btn { margin-top: 8px; align-self: flex-start; }

.essay, .pillars, .partner, .close, .b-intro, .c-essay {
  padding: 88px 7vw;
}
.essay { max-width: 920px; }
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 0;
}
.pillar {
  padding: 36px 36px 42px 0;
  border-top: 1px solid var(--line);
}
.pillar .no { color: var(--gold); letter-spacing: 0.18em; font-size: 12px; margin: 0 0 10px; }
.pillar p { margin: 0; color: var(--muted); }
.pillar:last-child:nth-child(odd) { grid-column: 1 / -1; padding-right: 0; }

.partner {
  background: #100e09;
  color: #f4f1ea;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
}
html.scheme-b .partner { background: #14120c; }
.partner p { color: #c9c2b6; }
.cats { margin: 18px 0 0; color: var(--gold-2); letter-spacing: 0.06em; }

.close {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.close h2 { max-width: 10em; }

.b-intro { padding-top: 148px; }
.b-intro h1 { max-width: 12em; }
.wall-wrap { padding: 0 7vw 72px; }
.wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.tile, .door {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  padding: 22px;
  text-decoration: none;
  color: #f4f1ea;
  background:
    radial-gradient(circle at 80% 20%, rgba(198, 168, 90, 0.2), transparent 36%),
    #121212;
  border: 0;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.tile.wide { grid-column: span 2; grid-row: span 2; min-height: 390px; }
.tile.car { grid-column: span 2; }
.tile .no, .door .no { color: var(--gold); letter-spacing: 0.2em; font-size: 12px; }
.tile strong, .door strong { font-size: 28px; font-weight: 500; }
.tile span, .door span { color: #c9c2b6; }
.tile:hover, .door:hover { outline: 1px solid var(--gold); }

.stage {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 92px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(198, 168, 90, 0.16), transparent 40%),
    #070707;
}
.stage-head { padding: 16px 7vw 14px; }
.stage-head h1 { font-size: clamp(32px, 3.6vw, 52px); max-width: 14em; margin-bottom: 8px; }
.stage-head .lead { margin-bottom: 0; }
.triptych { flex: 1; display: flex; min-height: 0; border-top: 1px solid rgba(244, 241, 234, 0.12); }
.door {
  flex: 1;
  min-height: 100%;
  border-radius: 0;
  border-right: 1px solid rgba(244, 241, 234, 0.12);
  transition: flex 0.35s ease;
}
.door:last-child { border-right: 0; }
.door:hover, .door:focus-visible { flex: 1.35; }
.door p { margin: 8px 0 0; max-width: 22em; }

.c-essay { max-width: none; }
.c-essay .prose { max-width: 860px; }

.wrap { padding: 132px 7vw 80px; }
.narrow { max-width: 860px; }
.about-hero { text-align: center; margin-bottom: 48px; }
.logo-plate { display: inline-block; background: #000; }
.about-hero img { height: 240px; width: auto; margin: 0 auto; }
.sub { margin: 8px 0; color: var(--muted); letter-spacing: 0.18em; }
.rows { margin-top: 36px; }
.rows a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  letter-spacing: 0.08em;
}
.rows a:last-child { border-bottom: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.legal h2 { margin-top: 36px; font-size: 22px; }
.legal p { margin: 0 0 12px; }

.foot {
  background: #070707;
  color: #f4f1ea;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 1.2fr;
  gap: 28px;
  padding: 48px 7vw 36px;
  border-top: 1px solid rgba(244, 241, 234, 0.1);
}
.foot img { height: 92px; width: auto; }
.foot a { color: #f4f1ea; }
.foot p, .foot a { margin: 0 0 8px; }
.legal-line { color: #b7b1a6; font-size: 13px; }
.foot .mail { display: inline-block; margin-bottom: 8px; }

.cookie {
  position: fixed;
  z-index: 50;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #141414;
  color: #f4f1ea;
  border: 1px solid rgba(198, 168, 90, 0.45);
}
.cookie p { margin: 0; color: #d9d3c8; max-width: 70ch; }
.cookie .btn-row { flex: none; }

dialog.lb {
  width: min(760px, calc(100vw - 28px));
  border: 1px solid rgba(198, 168, 90, 0.45);
  background: #0e0e0e;
  color: #f4f1ea;
  padding: 28px;
}
dialog.lb::backdrop { background: rgba(0, 0, 0, 0.72); }
.lb-visual {
  font-size: 96px;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px #c6a85a;
  margin-bottom: 12px;
}
.lb-visual img {
  width: 100%;
  max-height: 52vh;
  object-fit: contain;
  background: #f4f4f4;
  display: block;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: #f4f4f4;
  color: #171717;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  min-height: 0;
  overflow: hidden;
}
.cat-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f4f4f4;
}
.cat-card strong {
  display: block;
  padding: 14px 16px 18px;
  font-size: 18px;
  font-weight: 500;
  color: #171717;
}
.cat-card:hover { outline: 1px solid var(--gold); }
.cat-card:target { outline: 2px solid var(--gold); }
.chapter-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: center;
  padding: 112px 24px 32px;
}
.chapter-photos a {
  display: block;
  background: #f4f4f4;
  text-decoration: none;
  color: #171717;
}
.chapter-photos img {
  width: 100%;
  height: 148px;
  object-fit: contain;
}
.chapter-photos span {
  display: block;
  padding: 8px 10px 10px;
  font-size: 14px;
}
.chapter-photos a:last-child { grid-column: 1 / -1; }
.chapter-photos a:last-child img { height: 120px; }
.lb-x {
  float: right;
  background: transparent;
  color: #f4f1ea;
  border: 1px solid rgba(244, 241, 234, 0.3);
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

html.gallery body { background: #070707; color: #f4f1ea; }
.g-hero { padding: 140px 7vw 28px; }
.g-hero h1 { max-width: 10em; }
.show {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 10px 7vw 40px;
}
.card {
  background: #101010;
  border: 1px solid rgba(244, 241, 234, 0.1);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.preview {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: #000;
  border-bottom: 1px solid rgba(244, 241, 234, 0.1);
}
.preview iframe { position: absolute; left: 0; top: 0; border: 0; pointer-events: none; display: block; }
.card-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { margin: 0; color: #c9c2b6; }
.card-body .btn { align-self: flex-start; margin-top: auto; }
.compare { padding: 10px 7vw 80px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(244, 241, 234, 0.12); vertical-align: top; }
th { color: var(--gold-2); font-weight: 500; }

@media (max-width: 980px) {
  .chapter, .partner, .pillars, .grid-2, .foot, .show { grid-template-columns: 1fr; }
  .chapter-visual, .chapter-copy { min-height: auto; }
  .chapter.reverse .chapter-visual { order: 0; border-left: 0; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .chapter-photos { grid-template-columns: 1fr 1fr; padding-top: 24px; }
  .wall { grid-template-columns: 1fr 1fr; }
  .tile.wide, .tile.car { grid-column: span 2; grid-row: auto; min-height: 240px; }
  .stage { height: auto; }
  .triptych { flex-direction: column; min-height: auto; }
  .door { min-height: 280px; border-right: 0; border-bottom: 1px solid rgba(244, 241, 234, 0.12); }
  .nav-toggle { display: inline-flex; }
  .nav nav {
    display: none;
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 22px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #070707;
  }
  .nav nav.is-open { display: flex; }
  .nav nav a { min-height: 44px; display: flex; align-items: center; }
  .mail { display: none; }
  .mail-in { display: flex; }
  .foot .mail { display: inline-block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .door { transition: none; }
}
