body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  font-family: 'Instrument Sans', sans-serif;
}

.info-block {
  position: fixed;
  top: 0;
  left: 0;
  width: 26%;
  height: 100%;
  z-index: 5;
  background-color: rgb(255, 255, 255);
  color: rgb(26, 26, 26);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10vh 2.5vw 3vw;
  box-sizing: border-box;
  will-change: transform;
}

.info-block .name {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1;
  text-align: justify;
  margin: 0;
}

.info-block .role {
  font-weight: 500;
  font-size: clamp(0.85rem, 1vw, 1.05rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: justify;
  margin: 0.75rem 0 2rem;
  opacity: 0.85;
}

.info-block p {
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  text-align: justify;
  max-width: 38ch;
  margin: 0;
}

.art-block {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background-image: url("assets/grid-line-pattern-with-blue-texture-background.jpg");
  background-size: cover;
  cursor: grab;
  touch-action: pan-y;
}

.art-block.dragging {
  cursor: grabbing;
}

.papers-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 3vw;
  padding: 0 30vw 0 30vw; /* extra left padding so the first papers start under the info panel */
  will-change: transform;
}

.paper {
  flex: 0 0 auto;
  width: clamp(160px, 15vw, 250px);
  aspect-ratio: 210 / 297; /* A4 portrait, ready for a background-image */
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: rotate(var(--rot)) translateY(var(--ty));
  transition: transform 0.2s ease;
}

.paper:hover {
  transform: rotate(var(--rot)) translateY(calc(var(--ty) - 6px)) scale(1.02);
}

#follow-up {
    display: none;
}

#sun-logo {
    width: 40px;
}

/* ---------- Toolbar wheel ---------- */

.toolbar-wheel {
  position: fixed;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  z-index: 10;
}

.hub-btn {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background-color: #0b0b0b;
  color: #f5f3ec;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.hub-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.hub-btn:hover {
  transform: scale(1.08);
}

.toolbar-wheel.open .hub-btn svg {
  transform: rotate(45deg); /* plus becomes an x when the wheel is open */
}

.tool-arc {
  position: absolute;
  inset: 0;
}

.tool-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: none;
  border-radius: 50%;
  background-color: #0b0b0b;
  color: #f5f3ec;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: rotate(var(--angle)) translate(0) rotate(calc(-1 * var(--angle))) scale(0.3);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease,
    background-color 0.18s ease;
}

.tool-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.toolbar-wheel.open .tool-btn {
  opacity: 1;
  pointer-events: auto;
  transform: rotate(var(--angle)) translate(90px) rotate(calc(-1 * var(--angle))) scale(1);
}

.toolbar-wheel.open .tool-btn:hover,
.toolbar-wheel.open .tool-btn:focus-visible {
  background-color: #1f1f1f;
  transform: rotate(var(--angle)) translate(106px) rotate(calc(-1 * var(--angle))) scale(1.18);
}

.tool-btn.active {
  background-color: #f5f3ec;
  color: #0b0b0b;
}

.tool-label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #f5f3ec;
  background-color: rgba(11, 11, 11, 0.9);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tool-btn:hover .tool-label,
.tool-btn:focus-visible .tool-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hub-btn svg,
  .tool-btn,
  .tool-label {
    transition: none;
  }
}