@font-face {
  font-family: 'Nari';
  src: url('NariVariableVF.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, #f0ece3 0%, #C7BBA2 100%);
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
   font-variation-settings: 'wdth' 520;
}

.definition {
  font-family: 'Nari';
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #1a1a2e;
  max-width: 280px;
  line-height: 1.5;
}

.definition strong {
  font-weight: 400;
  font-variation-settings: 'wght' 60, 'wdth' 520;
}

.dataset-credit {
  font-family: 'Nari';
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: #1a1a2e;
  text-align: right;
  font-variation-settings: 'wght' 60, 'wdth' 520;
}

.main-title {
  font-family: 'Nari';
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #1a1a2e;
  text-align: center;
  margin: 20px 0 0;
}

.sub-title {
  font-family: 'Nari';
  font-size: 32px;
  font-weight: 200;
  letter-spacing: 0.01em;
  color: #1a1a2e;
  opacity:0.7
}

.layout {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  width: 100%;
  max-width: 100%;
  padding: 0;
  flex: 1;
  margin-top: 0px;
}

.left-col {
  padding-left: 40px;
}

.right-col {
  padding-right: 40px;
}

.drapes-col {
  display: flex;
  flex-direction: column;
  padding-top: 0px;
}

.drapes-label {
  font-family: 'Nari';
  font-size: 32px;
  font-weight: 150;
  font-style: italic;
  letter-spacing: 0.05em;
  color: #1a1a2e;
  margin-bottom: 14px;
  padding-top: 32px;
  font-variation-settings: 'wght' 80, 'wdth' 520;
}

.drapes-label.right {
  text-align: right;
}

.name-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.name-list.right {
  align-items: flex-end;
}

.name-btn {
  font-family: 'Nari';
  font-size: 10.5px;
  font-variation-settings: 'wght' 30, 'wdth' 620;  /* ← replaces font-weight */
  letter-spacing: 0.02em;
  color: #1a1a2e;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0px 0;
  line-height: 1.5;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.right-col .name-btn {
  text-align: right;
}

.name-btn:hover {
  font-style: italic;
}

.name-btn.dimmed {
  opacity: 0.4;
}

.name-btn.highlighted {
  opacity: 1;
  font-style: italic;
  font-variation-settings: 'wght' 80, 'wdth' 620;  /* ← replaces font-weight */
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#stage {
  position: relative;
  width: 340px;
  height: 560px;
  margin-top: 100px;
}

.layer {
  position: absolute;
  mix-blend-mode: darken;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.15;
  filter: brightness(1);
  transition: filter 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: filter, transform;
  pointer-events: none;
  transform: translateX(0px) ;
}

.layer.active {
  filter: brightness(1);
  transform: translateX(200px) scale(1.5);
  z-index: 200 !important;
}

#stage.has-active .layer:not(.active) {
  filter: brightness(1);
  opacity: 0.04;
  transform: translateX(-200px);
}

#readout {
  font-family: 'Nari';
  font-size: 32px;
  font-variation-settings: 'wght' 150, 'wdth' 525; 
  color: #010145;
  text-align: center;
  min-height: 20px;
  margin-top: 0px;
  letter-spacing: 0.03em;
  position: absolute;
  top: 300px;
  opacity: 70%;
  transform: translateX(200px); /* ← add this */
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);  /* ← smooth it */
}

.footer {
  width: 100%;
  padding: 16px 48px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-definition {
  font-family: 'Nari';
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #1a1a2e;
  font-variation-settings: 'wght' 60, 'wdth' 520;
}

.footer-credit {
  font-family: 'Nari';
  font-size: 9px;
  font-weight: 300;
  color: #1a1a2e;
  text-align: right;
  line-height: 1.6;
  opacity: 0.7;
  font-variation-settings: 'wght' 60, 'wdth' 520;
}

.dataset-credit a {
  color: #1a1a2e;
  text-decoration: underline;
  text-underline-offset: 1px;
}

.dataset-credit a:hover {
  opacity: 0.6;
}