.anatomy{
  padding: 40px 0 70px;
}

.anatomy-inner{
  width: min(1000px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
}

.anatomy-title,
.anatomy-intro,
.layer-tabs{
  position: relative;
  left: 60px;
}

.anatomy-title{
  font-family: 'Bagel Fat One', sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--burgundy);
  margin: 0 0 16px;
  text-align: right;
}

.anatomy-intro{
  font-size: 17px;
  line-height: 1.65;
  color: rgba(62, 12, 23, 0.8);
  max-width: 30em;
  margin: 0 0 28px auto;
  text-align: right;
}

.layer-tabs{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.layer-tab{
  padding: 9px 22px;
  border: 1.5px solid rgba(62, 12, 23, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--burgundy);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.layer-tab:hover{ border-color: var(--burgundy); }
.layer-tab:active{ transform: scale(.94); }
.layer-tab.active{
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--buttermilk);
}

.anatomy-closer{
  font-family: 'Bagel Fat One', sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--burgundy);
  text-align: center;
  margin: clamp(24px, 4vw, 48px) 0 0;
}

.peach-wrap{
  position: relative;
  width: min(500px, 100%);
  margin: 0 auto;
}

.peach-img{ width: 100%; display: block; }

.peach-overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.peach-zone{
  fill: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: fill .3s ease;
}
.peach-zone.active-zone{ fill: rgba(212, 153, 147, 0.42); }

.peach-popup{
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--burgundy);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 10;
}
.peach-popup.active{ opacity: 1; }

#popup-skin{  top: 0%;     right: 60%; --rot: 15deg;  --ax: -75px;  --ay: 90px; }
#popup-seed{  top: 20%;    left: 70%;  --rot: 120deg; --ax: -250px; --ay: 120px; }
#popup-flesh{ bottom: 35%; right: 60%; --rot: 0deg;   --ax: -115px; --ay: 70px; }

.peach-arrow{
  width: 100px;
  height: 100px;
  object-fit: contain;
  position: relative;
  top: var(--ay);
  left: var(--ax);
  transform: rotate(var(--rot));
}

.popup-title{
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 6px;
  text-align: left;
}

.popup-list{
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  text-align: left;
}
.popup-list li{
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 2px;
}

.popup-text .word{
  display: inline-block;
  filter: blur(6px);
  opacity: 0;
  transform: translateY(4px);
  transition: filter .4s ease, opacity .4s ease, transform .4s ease;
}
.peach-popup.active .word{
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px){
  .anatomy{ padding: 8px 0 40px; }
  .anatomy-inner{
    grid-template-columns: 1fr;
    width: calc(100% - 2.5rem);
    gap: 28px;
  }

  .anatomy-copy{ order: -1; }
  .anatomy-title,
  .anatomy-intro,
  .layer-tabs{ left: 0; }
  .anatomy-title,
  .anatomy-intro{ text-align: left; }
  .anatomy-intro{ margin: 0 0 20px; font-size: 16px; max-width: none; }
  .layer-tabs{ justify-content: flex-start; }
  .layer-tab{ padding: 11px 20px; }
  .anatomy-closer{ font-size: 1.6rem; }

  .peach-wrap{ margin-bottom: 158px; }

  .peach-wrap::after{
    content: "Tap a part of the peach to explore";
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    min-height: 132px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    color: rgba(62,12,23,0.6);
    border: 1.5px dashed rgba(62,12,23,0.28);
    border-radius: 6px 20px 6px 20px;
  }
  .peach-wrap.opened::after{ display: none; }

  #popup-skin,
  #popup-seed,
  #popup-flesh{
    top: calc(100% + 12px);
    right: 0;
    bottom: auto;
    left: 0;
    min-height: 132px;
    padding: 14px 18px;
    background: var(--burgundy);
    color: var(--buttermilk);
    border-radius: 6px 20px 6px 20px;
    white-space: normal;
  }

  .peach-arrow{ display: none; }
  .popup-text{ width: 100%; }
  .peach-popup .popup-title{ color: var(--buttermilk); font-size: 19px; }
}
