/* Paper labels sit quietly over the drawing; the scene stays the focus. */
:root { --note-paper: #fffdf7; --note-border: #8b9184; }
.intro { padding: 18px 0 0; z-index: 2; pointer-events: none; }
.intro-copy {
  display: inline-block;
  padding: 14px 20px 17px;
  background: #fffdf7f5;
  border: 1px solid #8b918466;
  box-shadow: 0 3px 12px #2530250a;
}
.eyebrow { font-size: 8px; letter-spacing: .09em; }
.eyebrow span { font-size: 17px; color: #7d8c6d; }
.intro-row { display: block; margin-top: 9px; }
.intro h1 { font-size: clamp(36px, 3.5vw, 50px); line-height: 1.05; letter-spacing: -.055em; }
.intro h1 br { display: none; }
.intro h1 span::before { content: ' '; }

.animal-detail {
  position: fixed;
  z-index: 20;
  left: var(--detail-left);
  top: var(--detail-top);
  right: auto;
  bottom: auto;
  width: min(320px, calc(100vw - 36px));
  min-height: 0;
  max-height: calc(100svh - 110px);
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translate(-50%, -100%);
  border-color: var(--note-border);
  background: var(--note-paper);
  box-shadow: 0 5px 20px #25302518;
  scrollbar-width: thin;
  scrollbar-color: #a4aa9b transparent;
}
.animal-detail[hidden] { display: none; }
.animal-detail[data-placement='below'] { transform: translate(-50%, 0); }
.animal-detail::before { content: none; }
.detail-close {
  display: grid;
  place-items: center;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #596455;
  font-size: 24px;
  line-height: 1;
}
.detail-close:hover { background: #e9ece2; }
.detail-kicker { min-height: 18px; padding-right: 28px; font-size: 9px; }
.detail-kicker #client-category { max-width: 152px; font-size: 8px; line-height: 1.4; text-align: right; }
.animal-detail h2 { margin: 15px 0 10px; font-size: 29px; line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
.animal-detail > p:not(.detail-kicker) { font-size: 13px; line-height: 1.6; color: #5d675d; }
.contribution { margin-top: 15px; padding-top: 12px; }
.detail-label { font-size: 8px; letter-spacing: .09em; margin-bottom: 7px; }
.contribution p:last-child { font-size: 12px; line-height: 1.55; }
.services { margin: 12px 0 0; gap: 5px; }
.services li { font-size: 9px; padding: 5px 7px; background: #f4f5ee; border-color: #e0e3d9; }
.animal-detail > a { min-height: 36px; margin-top: 12px; font-size: 12px; text-underline-offset: 5px; }
.animal-detail > a:hover { color: var(--moss); }
.animal-tag { background: var(--note-paper); border-color: #92998b; box-shadow: 0 2px 5px #2530250a; }

@media (max-width: 680px) {
  .intro h1 { font-size: clamp(32px, 9.6vw, 41px); letter-spacing: -.055em; }
  .intro h1 br { display: initial; }
  .intro h1 span::before { content: none; }
  .intro-copy { padding: 13px 15px 15px; }
  .eyebrow { font-size: 7px; letter-spacing: .055em; gap: 7px; }
  .animal-detail { padding: 20px; }
  .detail-close { width: 44px; height: 44px; top: 5px; right: 5px; }
  .detail-kicker { padding-right: 33px; }
}
