/* ---------- Branches section ---------- */
.jungle {
  --paper: #f1f0ec;
  --j-ink: #26272a;
  --leaf: #6cc48c;
  --j-sans: var(--sans);
  --rail: clamp(16px, 3vw, 38px);

  position: relative;
  z-index: 3;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: var(--j-ink);
  font-family: var(--j-sans);
  background: var(--paper);
}

.jungle__stage {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
}

.jungle a, .jungle button {
  color: inherit; text-decoration: none; font: inherit;
  background: none; border: 0; cursor: pointer;
}

.jungle__scene { position: absolute; inset: 0; overflow: hidden; }
.jungle__layer {
  position: absolute;
  /* layers bleed past the stage so parallax never shows an edge — keep in sync with BLEED in jungle.js */
  left: -12%; top: -12%;
  width: 124%; height: 124%;
  will-change: transform;
}

.jungle__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Small type ---------- */
.jungle__vlabel, .jungle__corner, .jungle__scroll, .jungle__mark-meta {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.jungle__vlabel { position: absolute; z-index: 5; writing-mode: vertical-rl; }
.jungle__vlabel--follow { right: var(--rail); top: 15%; }
.jungle__vlabel--sound { right: var(--rail); bottom: 20%; }
.jungle__vlabel--sound[aria-pressed="false"] { text-decoration: line-through; }
.jungle__vlabel--legal { right: var(--rail); bottom: 11%; }

/* ---------- Left rail ---------- */
.jungle__dots {
  position: absolute;
  z-index: 5;
  left: var(--rail);
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.jungle__dots span {
  display: block;
  width: 7px; height: 7px;
  border: 1px solid var(--j-ink);
  margin-left: 2px;
  transition: background .3s, transform .3s;
}
.jungle__dots span:first-child { background: var(--j-ink); transform: rotate(45deg); }
.jungle__dots i { display: block; width: 38px; height: 1px; background: var(--j-ink); margin-top: 6px; }

.jungle__corner { position: absolute; z-index: 5; left: var(--rail); bottom: 34px; }

.jungle__mark {
  position: absolute;
  z-index: 5;
  left: 24%;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.jungle__mark-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.jungle__mark-name em { font-style: normal; color: var(--leaf); }

/* ---------- Title ---------- */
.jungle__title-wrap {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
  will-change: transform;
}
.jungle__title {
  font-size: clamp(34px, 3.3vw, 52px);
  font-weight: 700;
  letter-spacing: -.01em;
}

/* ---------- Right rail ---------- */
.jungle__social {
  position: absolute;
  z-index: 5;
  right: calc(var(--rail) - 3px);
  top: 25%;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.jungle__social svg { display: block; width: 12px; height: 12px; fill: none; stroke: var(--j-ink); stroke-width: 2; }
.jungle__social a { display: block; transition: transform .3s; }
.jungle__social a:hover { transform: scale(1.3); }

.jungle__counter {
  position: absolute;
  z-index: 5;
  right: var(--rail);
  top: 45%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
.jungle__total {
  position: relative;
  font-size: 17px;
  font-weight: 500;
  padding-left: 22px;
  margin-bottom: 18px;
}
.jungle__total i {
  position: absolute;
  left: 2px; top: -6px;
  width: 1px; height: 38px;
  background: var(--j-ink);
  transform: rotate(-45deg);
}
.jungle__num { font-size: clamp(56px, 6vw, 84px); font-weight: 700; letter-spacing: -.04em; }

.jungle__scroll {
  position: absolute;
  z-index: 5;
  right: var(--rail);
  top: calc(45% + 140px);
  width: 66px;
  height: 36px;
  border: 1.5px solid var(--j-ink) !important;
  transition: background .3s, color .3s;
}
.jungle__scroll:hover { background: var(--j-ink); color: var(--paper); }

@media (max-width: 760px) {
  .jungle__mark { left: auto; right: var(--rail); align-items: flex-end; }
  .jungle__corner { bottom: 70px; }
  .jungle__social, .jungle__vlabel--follow { display: none; }
}

/* "Kev.jsx" — serif name, mono file extension in the site green */
.jungle__title { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.4vw, 88px); letter-spacing: -0.02em; }
.jungle__ext { font-family: var(--mono); font-size: .42em; font-weight: 500; letter-spacing: 0; color: #23b97f; margin-left: .08em; }

/* ---------- right rail: one flex column (fixes overlapping scroll box / labels) ---------- */
.jungle__rail {
  position: absolute;
  z-index: 5;
  right: var(--rail);
  top: 110px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
}
.jungle__follow { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.jungle__rail .jungle__vlabel,
.jungle__rail .jungle__social,
.jungle__rail .jungle__counter,
.jungle__rail .jungle__scroll { position: static; inset: auto; }
.jungle__rail .jungle__social { gap: 14px; }
.jungle__rail .jungle__social svg { width: 15px; height: 15px; stroke-linecap: round; stroke-linejoin: round; }
.jungle__rail .jungle__counter { margin-top: auto; }
.jungle__rail .jungle__total { margin-bottom: 14px; }
.jungle__rail .jungle__scroll { display: grid; place-items: center; flex: none; }
.jungle__rail-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.jungle__vlabel--legal { text-decoration: none; }
.jungle__vlabel--legal:hover { color: #23b97f; }
@media (max-width: 760px) {
  .jungle__rail { top: 90px; bottom: 30px; gap: 16px; }
  .jungle__follow { display: none; }
}
/* `.jungle button { font: inherit }` was overriding the small label type — restore it */
.jungle .jungle__scroll,
.jungle .jungle__vlabel { font: 600 10px/1 var(--j-sans); letter-spacing: .16em; text-transform: uppercase; }
.jungle .jungle__scroll { width: 74px; height: 34px; padding: 0; }

/* phones: keep the bottom-left text clear of the right rail */
@media (max-width: 760px) {
  .jungle__mark { left: var(--rail); right: auto; bottom: 62px; align-items: flex-start; }
  .jungle__corner { bottom: 34px; }
}
