:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #5a5a55;
  --line: #e3e0d4;
  --accent: #000000;
  --available: #566043;
  --reserved: #7a591e;
  --sold: #6e3b26;
  --cor-mostarda: #6d5e17;
  --cor-oliva: #505732;
  --cor-creme: #f2efe3;
  --ff-titulo: "Gumos", "Indivisible", "Hanken Grotesk", system-ui, sans-serif;
  --serif: "Indivisible", "Hanken Grotesk", system-ui, sans-serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; margin: 0; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff;
  transition: background .35s, color .35s, box-shadow .35s;
}
.site-header.scrolled, .site-header.nav-open {
  background: rgba(255,255,255,.97);
  color: var(--fg);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-size: 17px; font-weight: 500; letter-spacing: .02em; text-decoration: none; }
.main-nav ul { list-style: none; display: flex; gap: 28px; align-items: center; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  opacity: .85; transition: opacity .2s;
}
.main-nav a:hover, .main-nav a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
#currency {
  background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 0;
  padding: 3px 6px; font: inherit; font-size: 12px; cursor: pointer;
}
#currency option { color: var(--fg); }
.auth { display: flex; align-items: center; }
.login-btn {
  background: none; border: 1px solid currentColor; color: inherit; font: inherit; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; cursor: pointer; transition: background .2s, color .2s;
}
.login-btn:hover, .login-btn:focus-visible { color: #fff; background: var(--fg); border-color: var(--fg); }
.site-header:not(.scrolled):not(.nav-open) .login-btn:hover { background: #fff; color: var(--fg); border-color: #fff; }
.user-box { display: inline-flex; align-items: center; gap: 12px; }
.user-name { font-size: 12px; opacity: .85; }
.user-name::before { content: "\25CF"; color: var(--available); margin-right: 6px; font-size: 9px; vertical-align: middle; }
.login-card { max-width: 420px; margin-top: 8vh; }
.login-card .field { margin-top: 18px; }
.login-card .remember { margin: 18px 0 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform .3s; }
.nav-open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-cover {
  background: var(--cor-mostarda) url("../images/brand/hero-capa.jpg") center / cover no-repeat;
  color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  height: 100vh; min-height: 520px;
  padding: 96px clamp(20px, 5vw, 72px) 48px;
}
.hero-title { display: block; width: min(86vw, 760px); height: auto; }
.hero-info {
  position: absolute; left: clamp(20px, 5vw, 72px); right: clamp(20px, 5vw, 72px); bottom: clamp(20px, 5vw, 56px);
  display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  font-family: var(--ff-titulo); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.3; max-width: none;
}
.hero-cover .scroll-cue {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); color: #fff; opacity: .8;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.scroll-cue {
  display: inline-block; text-decoration: none; font-size: 20px;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { margin-bottom: -6px; } }

/* ---------- Intro / filters ---------- */
.intro { padding-top: 72px; padding-bottom: 40px; }
.lead { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; max-width: 780px; }
.curatorial { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.curatorial-head { position: sticky; top: 104px; }
.curatorial-head h2 { font-style: italic; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin-bottom: 10px; }
.curatorial-artists { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.curatorial-body { max-width: 720px; }
.curatorial-body p { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: #222; }
.curatorial-body p + p { margin-top: 1.1em; }
.curatorial-body .lead { font-size: clamp(21px, 2.2vw, 25px); line-height: 1.55; color: var(--fg); }
.curatorial-body .curatorial-author {
  margin-top: 2em; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.curatorial-author::before { content: "\2014\00a0"; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.manage { display: flex; align-items: center; gap: 18px; }
.btn-small { padding: 8px 16px; font-size: 11px; }
.badge {
  display: inline-block; margin-top: 8px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 2px 8px; color: var(--muted);
}
.art-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-img.detail { transform: scale(2.4); }
.card-art, .viewer-art, .thumb, .room-art, .add-preview { overflow: hidden; }
.link-btn.danger { color: var(--sold); display: block; margin-top: 16px; padding: 0; }
#btn-edit { display: block; margin-top: 22px; padding: 0; }
#btn-edit + .link-btn.danger { margin-top: 12px; }
.card-edit {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.95); color: var(--fg); font-size: 16px; line-height: 1;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: background .2s, color .2s;
}
.card-edit:hover, .card-edit:focus-visible { background: var(--fg); color: #fff; outline: none; }
.field input[readonly] { color: var(--muted); border-bottom-style: dashed; cursor: not-allowed; }
.filter {
  background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; font-size: 13px;
  color: var(--muted); letter-spacing: .04em; border-bottom: 1px solid transparent;
}
.filter:hover { color: var(--fg); }
.filter.active { color: var(--fg); border-bottom-color: var(--fg); }
.toggle { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; cursor: pointer; }

/* ---------- Grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 64px; padding-bottom: 96px; }
.card { position: relative; min-width: 0; cursor: pointer; outline: none; opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.card.in { opacity: 1; transform: none; }
.card-media {
  background: #f4f4f2; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  padding: 12%; overflow: hidden;
}
.card-art { max-width: 100%; max-height: 100%; height: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card-art svg { width: 100%; height: 100%; display: block; }
.card:hover .card-art, .card:focus-visible .card-art { transform: scale(1.04); }
.card:focus-visible .card-media { outline: 2px solid var(--fg); outline-offset: 4px; }

/* Card carousel (artworks with several photos) */
.card-media.carousel { position: relative; padding: 0; display: block; }
.carousel-track {
  display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center; padding: 10%;
}
.carousel-slide img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); user-select: none; -webkit-user-drag: none;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); color: var(--fg); font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding-bottom: 3px;
  opacity: 0; transition: opacity .2s; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.card:hover .carousel-btn, .card:focus-within .carousel-btn { opacity: 1; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 4px; }
.carousel-dot { width: 18px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.carousel-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.25); transition: background .2s, transform .2s; }
.carousel-dot.active::before { background: var(--fg); transform: scale(1.15); }
@media (hover: none) { .carousel-btn { opacity: 1; width: 34px; height: 34px; } }

.viewer-photo { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; box-shadow: 0 14px 40px rgba(0,0,0,.2); }
.thumb .art-img { object-fit: cover; }

/* Publishing feedback */
.publish-status { margin-top: 16px; padding: 10px 14px; font-size: 13px; background: #f4f4f2; border-left: 3px solid var(--fg); }
.publish-status.ok { border-left-color: var(--available); }

/* Photo list in the add form */
.photo-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.photo-item { position: relative; width: 84px; height: 84px; background: #f4f4f2; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-del {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.65); color: #fff; font-size: 11px; cursor: pointer;
}
.photo-cover, .photo-act {
  position: absolute; left: 3px; bottom: 3px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 6px; border: 0; background: rgba(255,255,255,.92); color: var(--fg);
}
.photo-act { cursor: pointer; opacity: .8; }
.photo-act:hover { opacity: 1; }
.photo-cover { background: var(--fg); color: #fff; }
.modal-card.busy { cursor: progress; }

.token-saved { margin-top: 18px; padding: 10px 12px; font-size: 12px; background: #f4f4f2; border-left: 3px solid var(--available); color: #333; }
.token-saved .link-btn { display: inline; margin-left: 6px; font-size: 11px; padding: 0; }
#l-token { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.card-caption { margin-top: 18px; font-size: 13px; line-height: 1.55; }
.card-caption .artist { margin-bottom: 2px; }
.muted { color: var(--muted); }
.card-price, .price { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--available); flex: none; }
.reserved .dot { background: var(--reserved); }
.sold .dot { background: var(--sold); }
.empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 60px 0; }

/* ---------- Artist / exhibition / contact ---------- */
.artists, .exhibition, .contact { padding-top: 88px; padding-bottom: 88px; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }
.section-tools { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.artists-list { display: flex; flex-direction: column; gap: 72px; margin-top: 48px; }
.artist-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.artist-text h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin-bottom: 4px; }
.artist-portrait.has-photo { aspect-ratio: 4 / 5; overflow: hidden; background: #f4f4f2; }
.artist-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.content-pending { visibility: hidden; min-height: 240px; }
.artist-portrait { aspect-ratio: 1; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.artist-portrait svg { width: 100%; height: 100%; display: block; }
h2 { font-family: var(--serif); font-size: 34px; margin-bottom: 18px; }
.artist-text p + p { margin-top: 14px; }
.meta { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px !important; }
.exhibition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 12px; }
.exhibition-title { font-family: var(--serif); font-size: 26px; font-style: italic; margin: -6px 0 28px; }
.label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

.contact > p { color: var(--muted); max-width: 560px; }
.contact-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 24px; margin-top: 32px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: inherit; border: 0; border-bottom: 1px solid #bdbdbd; padding: 8px 0; background: transparent; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--fg); }
.form-status { grid-column: 1 / -1; font-size: 13px; }
.form-status.ok { color: var(--available); }
.form-status.error { color: var(--sold); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn:disabled { opacity: .6; cursor: progress; }

.btn {
  justify-self: start; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: 12px 26px; font: inherit; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: #fff; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 12px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 100; background: #fff; overflow-y: auto;
  animation: fade .3s ease;
}
@keyframes fade { from { opacity: 0; } }
.viewer-bar {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  height: 64px; padding: 0 32px; background: rgba(255,255,255,.96); font-size: 12px; color: var(--muted); letter-spacing: .1em;
}
.viewer-actions { display: flex; gap: 24px; align-items: center; }
.link-btn { background: none; border: 0; font: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.icon-btn { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--fg); padding: 4px 8px; }
.nav-btn {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 3; background: none; border: 0;
  font-size: 54px; font-weight: 200; line-height: 1; color: #999; cursor: pointer; padding: 12px; transition: color .2s;
}
.nav-btn:hover { color: var(--fg); }
.nav-btn.prev { left: 8px; }
.nav-btn.next { right: 8px; }
.viewer-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; max-width: 1280px; margin: 0 auto;
  padding: 24px 80px 64px; min-height: calc(100vh - 64px); align-items: center;
}
.viewer-media { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.viewer-image { width: 100%; height: 72vh; display: flex; align-items: center; justify-content: center; }
.viewer-art { max-width: 100%; max-height: 100%; height: 100%; box-shadow: 0 14px 40px rgba(0,0,0,.2); }
.viewer-art svg { width: 100%; height: 100%; display: block; }
.thumbs { display: flex; gap: 10px; }
.thumb { width: 56px; height: 56px; padding: 0; border: 1px solid transparent; background: #f4f4f2; cursor: pointer; opacity: .55; transition: opacity .2s; }
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--fg); }
.thumb svg { width: 100%; height: 100%; display: block; }
.viewer-info h2 { font-size: 30px; margin-bottom: 18px; }
.details { font-size: 13px; line-height: 1.65; }
.viewer-info .price { font-size: 15px; margin: 22px 0; }
.extra { margin-top: 36px; font-size: 13px; color: #333; }
.extra h3 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 24px 0 8px; }
.extra ul { margin: 0; padding-left: 18px; }

/* Room view */
.room { position: relative; width: 100%; height: 72vh; overflow: hidden; background: #ece9e4; }
.room-wall { position: absolute; inset: 0 0 18% 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 6%; background: linear-gradient(#f1eee9, #e3dfd8); }
.room-art { box-shadow: 6px 14px 26px rgba(0,0,0,.28); max-height: 60%; }
.room-art svg { width: 100%; height: 100%; display: block; }
.room-floor { position: absolute; inset: 82% 0 0 0; background: linear-gradient(#b9a68c, #9c876b); }
.sofa { position: absolute; left: 50%; bottom: 10%; width: 46%; transform: translateX(-50%); }
.sofa-back { height: 70px; background: #5b6b73; border-radius: 10px 10px 0 0; }
.sofa-seat { height: 34px; background: #4b5a61; border-radius: 0 0 6px 6px; box-shadow: 0 16px 20px rgba(0,0,0,.2); }

/* Add-artwork modal */
.modal {
  position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.45); overflow-y: auto;
  display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px; animation: fade .25s ease;
}
.modal-card { background: #fff; width: 100%; max-width: 760px; padding: 32px 36px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.modal-head h2 { margin: 0; }
.modal-card fieldset { border: 0; border-top: 1px solid var(--line); margin: 20px 0 0; padding: 18px 0 0; }
.modal-card legend { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg); padding-right: 12px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; }
.form-grid + .form-grid, .field + .form-grid, .form-grid + .field { margin-top: 16px; }
.modal-card .field select { font: inherit; border: 0; border-bottom: 1px solid #bdbdbd; padding: 8px 0; background: transparent; }
.modal-card .field input[type="file"] { border: 0; padding: 6px 0; font-size: 12px; }
.modal-card small { font-size: 11px; }
.field .invalid, .field input.invalid { border-bottom-color: var(--sold); }
.preview-wrap { margin-top: 18px; height: 220px; background: #f4f4f2; display: flex; align-items: center; justify-content: center; padding: 20px; }
.add-preview { max-width: 100%; max-height: 100%; height: 100%; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.add-preview svg { width: 100%; height: 100%; display: block; }
.modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 16px; }
.modal-foot .spacer { flex: 1; }
#btn-clear-draft { color: var(--muted); }
#add-status { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .curatorial { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .curatorial-head { position: static; }
  .curatorial-body p { font-size: 17px; }
  .container { padding: 0 20px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .artist-item { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .artists-list { gap: 56px; }
  .exhibition-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .viewer-body { grid-template-columns: minmax(0, 1fr); padding: 12px 20px 48px; gap: 32px; }
  .viewer-image, .room { height: 55vh; }
  .nav-btn { top: auto; bottom: 12px; transform: none; font-size: 40px; position: fixed; }
  .nav-toggle { display: block; }
  .hero-cover { height: auto; min-height: 100svh; padding: 96px 20px 120px; }
  .hero-info { flex-direction: column; bottom: 64px; }
  .intro { margin-top: 40px; }
  .main-nav ul {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 18px; padding: 24px 20px; background: #fff; color: var(--fg); box-shadow: 0 8px 16px rgba(0,0,0,.08);
    display: none;
  }
  .nav-open .main-nav ul { display: flex; }
  .sofa-back { height: 40px; }
  .sofa-seat { height: 20px; }
}
@media (max-width: 560px) {
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .modal-card { padding: 24px 20px; }
  .toggle { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { opacity: 1; transform: none; }
}

/* Admin-only controls */
.admin-only { display: none !important; }
.is-admin .admin-only { display: block !important; }
.is-admin button.admin-only { display: inline-block !important; }
.link-btn:disabled { opacity: .35; cursor: default; text-decoration: none; }

/* Reorder artworks (admin) */
.btn-ghost { background: #fff; color: var(--fg); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--fg); color: #fff; }
.btn:disabled { opacity: .4; cursor: default; }
.reordering .filters, .reordering .admin-only { opacity: .4; pointer-events: none; }
.reordering .grid { padding-bottom: 150px; }
.reordering .card {
  opacity: 1; transform: none; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; outline: 2px dashed #bdbdbd; outline-offset: 8px;
}
.reordering .card:focus-visible { outline: 2px solid var(--fg); }
.reordering .card > * { pointer-events: none; }
.reordering .card > .card-handle, .reordering .card > .card-move-group { pointer-events: auto; }
.reordering .carousel-btn, .reordering .carousel-dots { display: none; }
.reordering .card.dragging {
  cursor: grabbing; background: #fff; opacity: .97; transform: scale(1.03); box-shadow: 0 22px 50px rgba(0,0,0,.3);
  outline-color: transparent; will-change: transform;
}
.card-placeholder { min-width: 0; border: 2px dashed var(--fg); background: #f4f4f2; opacity: .55; }
.card-handle {
  position: absolute; top: 10px; left: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; cursor: grab;
  background: rgba(255,255,255,.95); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.12); touch-action: none;
}
.card-move-group { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 6px; }
.card-move {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.95);
  color: var(--fg); font-size: 16px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.card-move:hover, .card-move:focus-visible { background: var(--fg); color: #fff; outline: none; }
.reorder-bar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center;
  gap: 18px; max-width: calc(100vw - 24px); padding: 12px 18px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.reorder-hint { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .reorder-bar { left: 12px; right: 12px; bottom: 12px; transform: none; max-width: none; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 14px; }
  .reorder-hint { flex-basis: 100%; font-size: 12px; }
}

/* Text editor */
.content-help { margin: 4px 0 18px; font-size: 12px; }
.content-help em { font-style: italic; }
#content-fields textarea { width: 100%; line-height: 1.5; }
#content-fields .field input, #content-fields .field textarea { font-size: 14px; }
.artist-edit-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.artist-edit { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 18px 0 8px; }
.artist-edit legend { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; padding-right: 12px; }
.artist-edit-tools { display: flex; gap: 18px; justify-content: flex-end; margin-bottom: 8px; }
.artist-edit-photo { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.artist-edit-thumb { width: 72px; height: 90px; background: #f4f4f2; display: flex; align-items: center; justify-content: center; font-size: 11px; overflow: hidden; }
.artist-edit-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Identidade Fluxo-Floema: sem fios, sombras, cantos arredondados ou degradês ---------- */
body { font-size: 17px; line-height: 1.55; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 4.5vw, 3.25rem); line-height: 1.08; }
.curatorial-head h2, .exhibition-title { font-style: normal; font-family: var(--serif); }
.exhibition-title { font-size: clamp(1.75rem, 4.5vw, 3.25rem); line-height: 1.08; }
.lead, .curatorial-body p, .artist-text h3 { font-family: var(--sans); }
.artist-text h3 { font-family: var(--serif); }
.curatorial-body p { color: var(--fg); font-size: 17px; line-height: 1.55; max-width: 60ch; }
.brand img { display: block; height: 28px; width: auto; transition: filter .35s; }
.site-header.scrolled .brand img, .site-header.nav-open .brand img { filter: invert(1); }
.site-header.scrolled, .site-header.nav-open, .main-nav ul { box-shadow: none; }
.main-nav a, .label, .field label, .meta, .curatorial-artists, .btn, .link-btn, .login-btn { font-family: var(--sans); }
.card-art, .carousel-slide img, .viewer-photo, .viewer-art, .artist-portrait, .add-preview, .room-art,
.modal-card, .reorder-bar, .card-edit, .card-handle, .card-move, .carousel-btn, .sofa-seat { box-shadow: none; }
.card-edit, .card-handle, .card-move, .carousel-btn, .photo-del, .dot, .carousel-dot::before { border-radius: 0; }
.dot, .carousel-dot::before { border-radius: 50%; }
.sofa-back, .sofa-seat { border-radius: 0; }
.room-wall, .room-floor { background: var(--cor-creme); }
.room-floor { background: #d9d4c0; }
.artists, .exhibition, .contact, .site-footer, .filters, .modal-card fieldset, .artist-edit { border-top: 0; }
.card-media, .preview-wrap, .photo-item, .thumb, .artist-portrait.has-photo, .publish-status, .token-saved { background: var(--cor-creme); }
.publish-status, .token-saved { border-left: 0; }
.exhibition { background: #566043; color: #fff; max-width: none; padding-left: max(32px, calc((100vw - var(--max)) / 2 + 32px)); padding-right: max(32px, calc((100vw - var(--max)) / 2 + 32px)); }
.exhibition .label { color: #fff; opacity: .8; }
.contact { background: var(--cor-creme); max-width: none; padding-left: max(32px, calc((100vw - var(--max)) / 2 + 32px)); padding-right: max(32px, calc((100vw - var(--max)) / 2 + 32px)); }
.contact > p { color: var(--fg); }
.site-footer { background: #000; color: #fff; }
.btn { border-color: var(--accent); }
.btn:hover, .btn:focus-visible { background: #fff; color: #000; }
.btn-ghost { background: transparent; }
.card.dragging { box-shadow: none; }
.modal { background: rgba(0,0,0,.6); }
.card-photo { width: 100%; display: flex; align-items: center; justify-content: center; }
.card-photo .art-img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.artist-portrait.has-photo { aspect-ratio: 2 / 3; }
.curatorial-toggle { display: block; margin-top: 1.1em; padding: 0; }
#curatorial-more > p:first-child { margin-top: 1.1em; }
#curatorial-more > p + p { margin-top: 1.1em; }
@media (max-width: 900px) {
  .exhibition, .contact { padding-left: 20px; padding-right: 20px; }
}
.artist-edit-photo-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.artist-edit-photo-actions .link-btn { padding: 0; }
#btn-add-artist { padding: 8px 0; }
