/* TSULGI ART — museum-grade dark canvas */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0a0a0b;
  --panel: #121214;
  --ink: #f4f4f6;
  --dim: #9d9da6;
  --gold: #e6c687;
  --line: rgba(244, 244, 246, 0.09);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}
body { background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
h1 { font-family: var(--serif); font-weight: 600; line-height: 1.08; }

/* header */
.top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 28px;
  padding: 18px 40px; background: rgba(10, 10, 11, 0.85); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.wordmark { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 4px; font-weight: 600; }
.wordmark span { color: var(--gold); }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 0.88rem; color: var(--dim); }
.top nav a:hover { color: var(--gold); }
#currency {
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 10px; font-size: 0.85rem;
}

/* hero */
.hero, .artist-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; }
.hero::before, .artist-hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--hero) center/cover no-repeat; opacity: 0.5;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 8%, rgba(10,10,11,0.55) 60%, rgba(10,10,11,0.35));
}
.hero-inner { position: relative; padding: 0 40px 56px; max-width: 780px; }
.kicker {
  color: var(--gold); text-transform: uppercase; letter-spacing: 4px;
  font-size: 0.7rem; font-weight: 600; margin-bottom: 12px;
}
.hero-inner h1, .page-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 14px; }
.lede { color: var(--dim); max-width: 620px; font-size: 1rem; }
.artist-count-line { margin-top: 16px; color: var(--gold); font-size: 0.8rem; letter-spacing: 1px; }
.page-head { padding: 90px 40px 20px; }

/* filters */
.filters {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
  padding: 26px 40px 6px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.fgroup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flabel { color: var(--dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; margin-right: 4px; }
.fbtn {
  background: transparent; color: var(--dim); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 15px; font-size: 0.82rem; cursor: pointer;
  font-family: var(--sans); transition: all 0.2s;
}
.fbtn:hover { color: var(--ink); border-color: rgba(230, 198, 135, 0.5); }
.fbtn.on { color: var(--bg); background: var(--gold); border-color: var(--gold); font-weight: 600; }

/* gallery grid */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 34px 26px; padding: 34px 40px 70px;
}
.work { display: block; }
.work.hide { display: none; }
.work-img {
  overflow: hidden; background: var(--panel); border: 1px solid var(--line);
  padding: clamp(14px, 2vw, 26px);
}
.work-img img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.work:hover .work-img img { transform: scale(1.03); }
.work-meta { padding: 14px 2px 0; }
.work-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.work-artist { color: var(--dim); font-size: 0.83rem; margin: 2px 0 8px; }
.work-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.price { color: var(--gold); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.3px; }
.avail { color: var(--dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.4px; }

/* detail page */
.detail-wrap {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: 44px; padding: 44px 40px; max-width: 1500px; margin: 0 auto;
}
.plate { background: var(--panel); border: 1px solid var(--line); padding: clamp(20px, 3vw, 48px); text-align: center; }
.plate img { max-width: 100%; max-height: 74vh; cursor: zoom-in; box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6); }
.plate-hint { color: var(--dim); font-size: 0.72rem; margin-top: 14px; letter-spacing: 0.6px; }
.detail-panel h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 2px 0 6px; }
.byline { color: var(--gold); font-size: 0.95rem; }
.byline:hover { text-decoration: underline; }
.specs { color: var(--dim); font-size: 0.88rem; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-big { font-size: 1.7rem; margin: 6px 0 12px; }
.story { color: var(--dim); font-size: 0.94rem; margin-bottom: 20px; }
.acquire { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.acq {
  background: var(--gold); color: var(--bg); border: 1px solid var(--gold);
  padding: 14px 22px; font-size: 0.95rem; font-weight: 600; font-family: var(--sans);
  cursor: pointer; letter-spacing: 0.4px; transition: all 0.2s;
}
.acq:hover { filter: brightness(1.1); }
.acq.ghost { background: transparent; color: var(--gold); }
.acq.ghost:hover { background: rgba(230, 198, 135, 0.12); }

/* inquiry form */
.inquiry[hidden], .sent[hidden] { display: none; }
.inquiry { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.inquiry.open { max-width: 560px; }
.inq-head { font-family: var(--serif); font-size: 1.25rem; }
.inquiry input, .inquiry textarea {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  padding: 12px 14px; font-size: 0.92rem; font-family: var(--sans); width: 100%;
}
.inquiry input:focus, .inquiry textarea:focus { outline: none; border-color: rgba(230, 198, 135, 0.6); }
.inquiry label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: var(--dim); }
.inq-note { color: var(--dim); font-size: 0.75rem; }
.sent { background: rgba(230, 198, 135, 0.1); border: 1px solid rgba(230, 198, 135, 0.4); color: var(--gold); padding: 14px 18px; margin-bottom: 22px; }

/* provenance */
.provenance { border: 1px solid var(--line); padding: 18px 20px; }
.prov-head { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 10px; color: var(--gold); }
.prov-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 0.82rem; }
.prov-row span { color: var(--dim); flex: none; }
.prov-row b { font-weight: 500; text-align: right; }

/* room preview */
.room-preview { margin-top: 26px; border: 1px solid var(--line); background: var(--panel); }
.room-head { padding: 14px 18px; font-family: var(--serif); font-size: 1.15rem; }
.room-scale { color: var(--dim); font-family: var(--sans); font-size: 0.72rem; margin-left: 10px; letter-spacing: 0.5px; }
.room-scene { position: relative; height: 340px; overflow: hidden; }
.room-wall { position: absolute; inset: 0 0 18% 0; background: #f2efe9; transition: background 0.4s; }
.room-floor { position: absolute; inset: 82% 0 0 0; background: #3a3128; }
.room-floor::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 64px); }
.room-art {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%);
  padding: 10px; background: #c9a86a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transition: padding 0.3s, background 0.3s;
}
.room-art img { display: block; height: 140px; width: auto; }
.room-art.frame-oak { background: #c9a86a; padding: 10px; }
.room-art.frame-walnut { background: #5d4433; padding: 10px; }
.room-art.frame-black { background: #1c1c1e; padding: 10px; }
.room-art.frame-float { background: transparent; padding: 0; box-shadow: 0 16px 36px rgba(0,0,0,0.5); }
.room-sofa {
  position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%);
  width: 300px; height: 84px; background: #4b4b52; border-radius: 12px 12px 4px 4px;
}
.room-sofa::before {
  content: ''; position: absolute; top: -26px; left: 8px; right: 8px; height: 34px;
  background: #55555c; border-radius: 10px 10px 0 0;
}
.room-controls { display: flex; flex-wrap: wrap; gap: 18px; padding: 14px 18px; border-top: 1px solid var(--line); }
.rc-group { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.swatch.on { border-color: var(--gold); }
.framebtn {
  background: transparent; border: 1px solid var(--line); color: var(--dim);
  padding: 5px 12px; border-radius: 999px; font-size: 0.75rem; cursor: pointer; font-family: var(--sans);
}
.framebtn.on { color: var(--bg); background: var(--gold); border-color: var(--gold); }

/* zoom modal */
.zoom-modal[hidden] { display: none; }
.zoom-modal { position: fixed; inset: 0; z-index: 90; background: rgba(6, 6, 7, 0.96); overflow: hidden; cursor: grab; }
.zoom-modal.grabbing { cursor: grabbing; }
.zoom-modal img { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.zoom-hud {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: var(--dim); font-size: 0.75rem; letter-spacing: 1px; background: rgba(10,10,11,0.7);
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
}

/* roster */
.roster { padding: 20px 40px 70px; max-width: 980px; }
.artist-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: baseline;
  padding: 22px 6px; border-bottom: 1px solid var(--line); transition: padding 0.2s;
}
.artist-row:hover { padding-left: 14px; }
.artist-row:hover .artist-name { color: var(--gold); }
.artist-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.artist-origin { color: var(--dim); font-size: 0.85rem; }
.artist-count { color: var(--gold); font-size: 0.78rem; letter-spacing: 1px; }

/* more / submit */
.more { padding: 10px 40px 30px; max-width: 1500px; margin: 0 auto; }
.more h2 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 4px; padding: 0 0 6px; }
.submit-wrap { padding: 26px 40px 70px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px; color: var(--dim); font-size: 0.85rem; }
.foot-name { font-family: var(--serif); letter-spacing: 3px; color: var(--ink); margin-bottom: 6px; }
.foot-fine { font-size: 0.72rem; opacity: 0.7; margin-top: 6px; }

@media (max-width: 960px) {
  .detail-wrap { grid-template-columns: 1fr; }
  .top { padding: 14px 20px; gap: 14px; }
  .hero-inner, .filters, .gallery-grid, .page-head, .roster, .more, .submit-wrap, .foot { padding-left: 20px; padding-right: 20px; }
}
