:root {
  --ink: #2a2018;
  --ink-2: #5a4a3a;
  --muted: #7a6650;
  --label: #8a7660;
  --wall: #efe7d8;
  --paper: #f6f2ea;
  --sold: #a0452a;
  --line: rgba(42, 32, 24, .35);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Jost, system-ui, sans-serif;
  --ease: cubic-bezier(.22,.8,.24,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wall); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { display: block; }

.room {
  position: relative; min-height: 100vh;
  background:
    radial-gradient(ellipse 50% 900px at 25% 0, rgba(255,250,236,.95), transparent 70%),
    radial-gradient(ellipse 40% 700px at 80% 22%, rgba(255,244,220,.8), transparent 70%),
    radial-gradient(ellipse 45% 700px at 15% 45%, rgba(255,246,226,.75), transparent 70%),
    radial-gradient(ellipse 40% 700px at 75% 68%, rgba(255,244,220,.75), transparent 70%),
    radial-gradient(ellipse 50% 800px at 40% 95%, rgba(255,248,232,.8), transparent 70%),
    var(--wall);
}

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 72px; }
.logo { font: italic 500 28px var(--serif); text-decoration: none; white-space: nowrap; }
.head-right { display: flex; align-items: center; gap: 40px; }
.nav { display: flex; gap: 32px; font: 300 14px var(--sans); letter-spacing: .06em; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.langs { display: flex; gap: 12px; }
.langs button { background: none; border: none; border-bottom: 1px solid transparent; padding: 2px 0; cursor: pointer; font: 400 12px var(--sans); letter-spacing: .12em; color: rgba(42,32,24,.4); }
.langs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Hero */
.hero { text-align: center; padding: 110px 72px 120px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero h1 { margin: 0; max-width: 860px; min-height: 1.9em; display: flex; align-items: center; justify-content: center; font: italic 400 clamp(54px, 10vw, 100px)/.95 var(--serif); text-wrap: balance; }
.hero p { margin: 0; max-width: 520px; font: 300 17px/1.6 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.search { margin-top: 36px; width: 100%; max-width: 420px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 0 4px; }
.search span { font: 300 18px var(--sans); color: var(--label); }
.search input { flex: 1; min-width: 0; height: 48px; border: none; background: transparent; outline: none; font: italic 400 20px var(--serif); }
.search input::-webkit-search-cancel-button { filter: sepia(1); }

/* Wall */
.wall { position: relative; padding: 0 64px 140px; }
.wall-msg { text-align: center; padding: 0 0 160px; font: italic 400 24px var(--serif); color: var(--muted); }
.wall-items { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 110px 130px; max-width: 1700px; margin: 0 auto; }
.piece { display: flex; flex-direction: column; gap: 14px; cursor: pointer; background: none; border: none; padding: 0; text-align: left; }
.piece:focus-visible { outline: 2px solid var(--ink); outline-offset: 10px; }
.piece-cap { display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.piece-title { font: italic 400 18px var(--serif); }
.piece-meta { font: 300 12px var(--sans); color: var(--muted); }
.sold-tag { font: 500 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sold); }

.frame-out { flex: none; box-sizing: content-box; }
.frame-in { width: 100%; height: 100%; overflow: hidden; position: relative; }
.frame-in > img, .frame-in > .art-ph, .frame-in > .shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame-in > img { object-fit: cover; }
.frame-in > .shade { pointer-events: none; }
.piece .frame-out { transition: transform .35s cubic-bezier(.22,.8,.24,1), box-shadow .35s; }
.piece:hover .frame-out { transform: translateY(-4px); }

/* Overlay */
.ov-backdrop { position: fixed; inset: 0; background: rgba(40,30,20,.35); z-index: 9; }
.ov { position: absolute; left: 60px; right: 60px; z-index: 10; }
.ov-card { background: var(--paper); display: grid; grid-template-columns: minmax(0,640px) minmax(300px,1fr); box-shadow: 0 30px 70px rgba(30,20,10,.4); max-width: 1080px; margin: 0 auto; }
.ov-stage { position: relative; height: 500px; overflow: hidden; }
.ov .frame-out {
  transition: width .5s var(--ease), height .5s var(--ease), border-width .5s var(--ease), border-color .5s var(--ease),
    padding .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.ov .frame-out .shade { transition: box-shadow .5s var(--ease); }
.ov.still *, .ov.still *::before, .ov.still *::after { transition: none !important; }
.frame-ghost { position: fixed; z-index: 30; margin: 0; pointer-events: none; transition: none !important; box-sizing: content-box; }
.stage { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .45s ease, transform .6s var(--ease); }
.stage.on { opacity: 1; pointer-events: auto; transform: none; }
.stage-close { transform: scale(1.03); }
.stage-wall { transform: scale(.97); }
.stage-close { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse 70% 60% at 40% 20%, rgba(255,248,230,.95), transparent 70%), #ece3d4; }
.wall-hang { position: absolute; left: 50%; transform: translateX(-50%); transition: bottom .5s var(--ease); }
.stage-wall { background: radial-gradient(ellipse 60% 50% at 30% 10%, rgba(255,250,236,.9), transparent 70%), #e7ddcc; }
.stage-wall .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: #cdbda4; border-top: 1px solid #b9a88d; }
.sofa { transition: width .5s var(--ease), height .5s var(--ease); position: absolute; left: 50%; transform: translateX(-50%); bottom: 40px; background: #9c8a70; border-radius: 10px 10px 2px 2px; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; font: 10px ui-monospace, Menlo, monospace; color: rgba(255,255,255,.85); }
.sofa::before, .sofa::after { content: ''; position: absolute; bottom: -6px; width: 8px; height: 6px; background: #6f604c; }
.sofa::before { left: 14px; } .sofa::after { right: 14px; }
.views { position: absolute; left: 20px; bottom: 20px; display: flex; background: rgba(246,242,234,.92); border-radius: 999px; padding: 4px; }
.views-thumb { position: absolute; left: 4px; top: 4px; height: 36px; border-radius: 999px; background: var(--ink); transition: transform .4s var(--ease), width .4s var(--ease); }
.pill { position: relative; white-space: nowrap; flex: none; height: 36px; padding: 0 16px; border: none; border-radius: 999px; cursor: pointer; font: 400 13px var(--sans); background: transparent; color: var(--ink); transition: color .3s, background-color .3s; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.views .pill[aria-pressed="true"] { background: transparent; }
.arrows { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 8px; }
.arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(42,32,24,.25); background: rgba(246,242,234,.92); font-size: 18px; cursor: pointer; transition: background-color .2s, transform .2s; }
.arrows button:hover { background: #fff; }
.arrows button:active { transform: scale(.94); }
.ov-info { padding: 36px 34px; display: flex; flex-direction: column; gap: 24px; }
.ov-x { align-self: flex-end; width: 44px; height: 44px; border: none; background: none; font: 300 26px var(--sans); cursor: pointer; margin: -10px -10px 0 0; }
.ov-info h2 { margin: 0; font: italic 400 42px/1 var(--serif); text-wrap: balance; }
.badge-sold { align-self: flex-start; font: 500 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--sold); padding: 4px 8px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid rgba(90,70,50,.15); padding-top: 18px; }
.fact { display: flex; flex-direction: column; gap: 4px; }
.lbl { font: 400 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.fact .val { font: 400 20px var(--serif); }
.frames { display: flex; flex-wrap: wrap; gap: 8px; }
.frames button { height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; font: 400 13px var(--sans); background: transparent; border: 1px solid rgba(42,32,24,.2); transition: background-color .25s, border-color .25s; }
.frames button:hover { border-color: rgba(42,32,24,.5); }
.ov-frames { display: flex; flex-direction: column; gap: 12px; }
.frames button[aria-pressed="true"] { background: #fff; border-color: var(--ink); }
.frames .sw { width: 14px; height: 14px; border: 1px solid rgba(0,0,0,.2); }
.btn-dark { height: 52px; border: none; background: var(--ink); color: var(--paper); font: 400 14px var(--sans); letter-spacing: .08em; cursor: pointer; padding: 0 22px; }
.btn-dark:hover { background: #3d2f24; }
.btn-dark:disabled { opacity: .6; cursor: progress; }
.ov-info .btn-dark { margin-top: auto; }

/* About */
.about { max-width: 680px; margin: 0 auto; padding: 40px 24px 100px; scroll-margin-top: 20px; }
.about h2 { margin: 0 0 36px; text-align: center; font: italic 400 60px/1 var(--serif); }
.bio p { margin: 0 0 1.2em; font: 300 16px/1.8 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.bio p:first-child { font: italic 400 24px/1.45 var(--serif); color: var(--ink); text-align: center; margin-bottom: 1.6em; }
.bio p:first-child::after { content: ''; display: block; width: 48px; height: 1px; background: var(--line); margin: 1.4em auto 0; }

/* Contact */
.contact { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 40px 72px 120px; text-align: center; scroll-margin-top: 20px; }
.contact h2 { margin: 0; font: italic 400 60px/1 var(--serif); }
.contact > p { margin: 0; max-width: 480px; font: 300 15px/1.6 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.cform { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; text-align: left; }
.cform input, .cform select { height: 46px; border: none; border-bottom: 1px solid var(--line); background: transparent; font: 400 19px var(--serif); outline: none; border-radius: 0; }
.cform select { font-style: italic; }
.cform input:focus, .cform select:focus { border-bottom-color: var(--ink); }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.cerr { font: 300 14px var(--sans); color: var(--sold); }
.thanks { font: italic 400 24px var(--serif); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.pills a { height: 44px; padding: 0 18px; display: flex; align-items: center; border: 1px solid rgba(42,32,24,.3); border-radius: 999px; font: 400 13px var(--sans); text-decoration: none; }
.pills a:hover { background: rgba(42,32,24,.06); }
.map { margin-top: 56px; width: 100%; max-width: 720px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(35,25,15,.18); }
.map-art { height: 320px; position: relative; overflow: hidden; background: #e3d9c6; }
.map-art iframe { display: block; width: 100%; height: 100%; border: 0; filter: sepia(.2) saturate(.9); transition: filter .4s; }
.map-art:hover iframe { filter: none; }
.map-foot { text-decoration: none; transition: background-color .25s; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: var(--paper); text-align: left; }
.map-foot > span:first-child { font: italic 400 24px var(--serif); }
.map-foot:hover { background: #fff; }
.map-foot > span:last-child { font: 400 13px var(--sans); letter-spacing: .06em; white-space: nowrap; }
.scale-note { margin-top: 40px; font: 300 12px var(--sans); color: var(--label); }

/* Small screens */
@media (max-width: 900px) {
  .site-head { padding: 22px 16px; flex-wrap: wrap; }
  .head-right { gap: 20px; flex-wrap: wrap; }
  .nav { gap: 18px; }
  .hero { padding: 64px 16px 80px; }
  .wall { padding: 0 16px 100px; }
  .wall-items { gap: 64px 40px; }
  .contact { padding: 40px 16px 80px; }
  .contact h2 { font-size: 46px; }
  .about { padding: 20px 16px 72px; }
  .about h2 { font-size: 46px; }
  .bio p:first-child { font-size: 21px; }
  .ov { position: fixed; inset: 0; top: 0 !important; overflow-y: auto; }
  .ov-card { grid-template-columns: minmax(0,1fr); min-height: 100%; box-shadow: none; }
  .ov-stage { height: 380px; }
  .ov-info { padding: 24px 20px 32px; }
  .ov-x { position: absolute; top: 10px; right: 10px; margin: 0; background: rgba(246,242,234,.92); border-radius: 50%; z-index: 2; }
  .ov-info h2 { font-size: 34px; }
}
@media (max-width: 560px) {
  .site-head { justify-content: center; }
  .logo { font-size: 26px; }
  .map-foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ov *, .piece .frame-out { transition: none !important; }
}
