/* Sala de projetos. A fotografia, a legenda e a faixa de seleção ocupam
   superfícies separadas, para o arrasto continuar livre sobre a imagem. */
.unv {
  --unv-margin: clamp(14px,4.5vw,96px);
  --unv-text: #f6f5ee;
  --unv-secondary: #b8b9b0;
  --unv-yellow: #ffed00;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #030403;
  color: var(--unv-text);
  color-scheme: dark;
  font-family: "DM Sans", Arial, sans-serif;
}
.unv[open] { display: block; }
.unv::backdrop { background: transparent; backdrop-filter: none; }
.unv *, .unv *::before, .unv *::after { box-sizing: border-box; }
.unv :focus-visible { outline: 2px solid var(--unv-yellow); outline-offset: 3px; }
.unv .unv-world {
  height: 100%; width: 100%;
  display: grid;
  grid-template: auto minmax(0,1fr) auto / minmax(0,1fr);
  background: #10110f;
}
.unv button, .unv a { color: inherit; font: inherit; text-transform: none; touch-action: manipulation; }
.unv button { cursor: pointer; }
.unv .unv-header, .unv .unv-footer {
  position: relative;
  z-index: 2;
  width: auto;
  margin-inline: var(--unv-margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.unv .unv-header { padding: clamp(13px,2.3vh,27px) 0; }
.unv .unv-title {
  display: flex; align-items: center; gap: clamp(12px,1.5vw,24px);
  padding: 0; margin: 0;
  font: 400 clamp(12px,1vw,15px)/1.2 "DM Sans",Arial,sans-serif;
  letter-spacing: -.025em;
}
.unv .unv-title img { display: block; width: clamp(60px,5.8vw,92px); height: auto; }
.unv .unv-title span { padding-left: clamp(12px,1.45vw,22px); border-left: 1px solid #4d4e47; }
.unv .unv-exit {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 39px; padding: 8px 15px;
  border: 1px solid #5a5b53; border-radius: 24px; background: transparent;
  white-space: nowrap; font-size: 12px; line-height: 1.1;
}
.unv .unv-exit:hover, .unv .unv-prev:hover, .unv .unv-next:hover { border-color: var(--unv-yellow); }
.unv .unv-stage {
  position: relative; min-height: 0; overflow: hidden; touch-action: none; isolation: isolate;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.unv .unv-stage.unv-dragging, .unv .unv-stage.unv-dragging * { cursor: grabbing; }
.unv .unv-deck { position: absolute; inset: 0; perspective: 1850px; perspective-origin: 50% 50%; pointer-events: none; }
.unv .unv-card {
  position: absolute; left: 50%; top: 50%; padding: 0; margin: 0; display: block;
  overflow: hidden; border: 0; border-radius: 2px; background: #171813;
  pointer-events: auto; backface-visibility: hidden; transform-origin: center; will-change: transform; touch-action: none;
}
.unv .unv-card:focus-visible { outline-offset: -3px; }
.unv .unv-card picture { display: block; position: relative; overflow: hidden; width: 100%; height: 100%; }
.unv .unv-card img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 43%; }
.unv .unv-card::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg,rgba(3,4,3,.87),rgba(3,4,3,.28) 22%,transparent 46%);
}
.unv .unv-caption {
  position: absolute; z-index: 2; bottom: 0; inset-inline: var(--unv-gutter,4.5vw);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: clamp(20px,3vw,52px); pointer-events: none; text-align: left;
}
.unv .unv-name {
  color: #fff; margin: 0 0 .05em; padding: 0;
  font: 500 clamp(56px,7.1vw,140px)/.96 "DM Sans",Arial,sans-serif;
  letter-spacing: -.077em;
}
.unv .unv-category { margin: 0; color: #f0f0e8; font: 400 clamp(13px,1.15vw,19px)/1.33 "DM Sans",Arial,sans-serif; }
.unv .unv-actions { display: inline-flex; align-items: center; gap: clamp(12px,1.45vw,26px); flex: none; pointer-events: auto; }
.unv .unv-demo {
  display: inline-flex; align-items: center; gap: 15px; justify-content: center;
  color: #151611; background: var(--unv-yellow); border: 0; border-radius: 32px;
  padding: 14px 19px; white-space: nowrap; text-decoration: none;
  font: 650 13px/1.1 "DM Sans",Arial,sans-serif;
}
.unv .unv-demo:hover { background: #fff591; }
.unv .unv-mode {
  background: transparent; border: 0; border-bottom: 1px solid #dddcd5; border-radius: 0;
  padding: 6px 0 4px; white-space: nowrap; color: #fff; font-size: 13px; line-height: 1.2;
}
.unv .unv-mode:hover { border-color: var(--unv-yellow); color: var(--unv-yellow); }
.unv[data-view=interface] .unv-card { background: radial-gradient(ellipse at 50% 10%,#383932,#181914 75%); }
.unv[data-view=interface] .unv-card picture {
  width: var(--unv-screen-width); height: var(--unv-screen-height); margin: 10px auto 0;
  border: 1px solid #5d5d54; box-shadow: 0 5px 24px #08090880;
}
.unv[data-view=interface] .unv-card img { object-position: center; }
.unv[data-view=interface] .unv-card::after { display: none; }
.unv[data-view=interface] .unv-caption {
  background: linear-gradient(to top, #141510 0%, #141510f0 74%, transparent 100%);
}
html[data-motion=completo] .unv[open] .unv-thumb {
  animation: thumb-arrives .62s cubic-bezier(.2,.75,.2,1) backwards;
  animation-delay: calc(.18s + var(--order) * .045s);
}
@keyframes thumb-arrives {
  from {opacity:0; transform:translateY(12px); clip-path:inset(0 0 28% 0)}
  to {opacity:1; transform:none; clip-path:inset(0)}
}
.unv .unv-footer { padding: clamp(10px,1.8vh,23px) 0 max(clamp(10px,2.1vh,26px),env(safe-area-inset-bottom)); }
.unv .unv-rail { display: flex; align-items: flex-start; gap: clamp(6px,.72vw,12px); min-width: 0; }
.unv .unv-thumb {
  width: clamp(44px,5.7vw,92px); flex: 0 1 auto; min-width: 0;
  display: grid; gap: 6px; justify-items: start; text-align: left;
  background: transparent; padding: 0; margin: 0; border: 0; border-radius: 0;
}
.unv .unv-thumb img {
  display: block; width: 100%; height: clamp(29px,5.4vh,56px); object-fit: cover;
  object-position: center 40%; opacity: .52; border: 1px solid transparent; border-radius: 2px;
}
.unv .unv-thumb span { color: var(--unv-secondary); font: 450 11px/1.1 "DM Sans",Arial,sans-serif; }
.unv .unv-thumb:hover img,.unv .unv-thumb[aria-pressed=true] img { opacity: 1; }
.unv .unv-thumb[aria-pressed=true] img { outline: 1px solid var(--unv-yellow); outline-offset: 2px; }
.unv .unv-thumb[aria-pressed=true] span { color: var(--unv-yellow); }
.unv .unv-pager { flex: none; display: flex; align-items: center; gap: 6px; }
.unv .unv-counter { font: 450 12px/1 "IBM Plex Mono",monospace; font-variant-numeric: tabular-nums; margin-right: clamp(5px,1vw,18px); white-space: nowrap; }
.unv .unv-total { color: #aaa99f; }
.unv .unv-prev, .unv .unv-next {
  width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0;
  border: 1px solid #53544b; border-radius: 50%; background: transparent; font: 20px/1 Arial,sans-serif;
}
@media(max-width:700px) {
  .unv .unv-header { padding: 11px 0; }
  .unv .unv-caption { display: grid; gap: 12px; padding: clamp(15px,4.4vw,30px); }
  .unv .unv-name { font-size: clamp(52px,13vw,76px); }
  .unv .unv-card::after { background: linear-gradient(0deg,rgba(3,4,3,.91),rgba(3,4,3,.45) 25%,transparent 56%); }
  .unv:not([data-view=interface]) .unv-card[data-project=dobra] img { object-position: 24% 43%; }
  .unv:not([data-view=interface]) .unv-card[data-project=jato] img { object-position: 62% 48%; }
  .unv:not([data-view=interface]) .unv-card[data-project=forma] img { object-position: 69% 45%; }
  .unv:not([data-view=interface]) .unv-card[data-project=orla] img { object-position: 27% 48%; }
  .unv .unv-footer { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .unv .unv-rail { flex: 1 1 100%; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(5px,1.5vw,10px); }
  .unv .unv-thumb { width: 100%; gap: 4px; }
  .unv .unv-thumb img { height: clamp(26px,8vw,42px); }
  .unv .unv-pager { margin: 0 0 0 auto; }
  .unv .unv-prev, .unv .unv-next { width: 32px; height: 32px; font-size: 16px; }
  .unv .unv-actions { gap: 15px; }
  .unv .unv-demo { padding: 12px 15px; gap: 9px; font-size: 12px; }
}
@media(max-width:390px) {
  .unv .unv-title { gap: 8px; font-size: 11px; }
  .unv .unv-title span { padding-left: 8px; }
  .unv .unv-title img { width: 51px; }
  .unv .unv-exit { padding: 7px 10px; font-size: 11px; min-height: 32px; gap: 5px; }
  .unv .unv-mode { font-size: 12px; }
  .unv .unv-actions { gap: 10px; }
}
@media(max-height:500px) and (orientation:landscape) {
  .unv .unv-header { padding-block: 4px; }
  .unv .unv-title img { width: 52px; }
  .unv .unv-exit { min-height: 28px; padding-block: 5px; }
  .unv .unv-caption { display:flex; gap: 14px; padding: 12px 18px; }
  .unv .unv-name { font-size: 40px; }
  .unv .unv-category { font-size: 11px; }
  .unv .unv-demo { padding: 9px 12px; }
  .unv .unv-footer { flex-wrap: nowrap; justify-content: space-between; padding-block: 6px; }
  .unv .unv-rail { display: flex; flex: 0 1 auto; gap: 8px; }
  .unv .unv-thumb { width: 44px; }
  .unv .unv-thumb img { height: 25px; }
  .unv .unv-thumb span { font-size: 9px; }
  .unv .unv-prev,.unv .unv-next { width: 30px; height: 30px; }
}
