

.gear {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  z-index: 20;
  text-align: left;
}

.gear summary {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  list-style: none;
  cursor: pointer;
  border-radius: 50%;
}

.gear summary::-webkit-details-marker {
  display: none;
}

.gear summary:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 2px;
}

.gear summary img {
  display: block;
  width: 34px;
  height: auto;
  transition: rotate 0.4s ease;
}

.gear[open] summary img,
.gear summary:hover img {
  rotate: 60deg;
}


.gear-menu {
  position: absolute;
  top: calc(100% + 0.3rem);
  right: 0;
  width: 15rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0.9rem 1rem 0.8rem;
  color: var(--c-ink);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), 0 10px 22px -10px rgba(0, 0, 0, 0.35);
  rotate: 0.8deg;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: normal;
}

.gear-menu::before {
  content: "";
  position: absolute;
  top: -11px;
  right: 1.4rem;
  width: 3.4rem;
  height: 1.1rem;
  transform: rotate(5deg);
  background: rgba(247, 242, 222, 0.9);
  clip-path: polygon(2% 10%, 98% 0, 100% 90%, 95% 100%, 5% 96%, 0 86%);
}


.gear-menu,
.gear-menu * {
  text-transform: lowercase;
}

.gear-label {
  margin: 0.35rem 0 0.2rem;
  color: var(--c-label);
  font-size: 0.85rem;
  font-style: italic;
}

.gear-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.45rem;
  padding: 0;
  list-style: none;
}

.gear-picks a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.75rem;
  color: var(--c-ink);
  text-decoration: none;
  background: none;
  border: 1px dashed var(--c-hairline);
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
}

.gear-picks a[aria-current="true"] {
  border: 1.5px solid var(--c-ink);
  background: rgba(0, 113, 206, 0.1);
}

.gear-note {
  margin: -0.15rem 0 0.45rem;
  color: var(--c-label);
  font-size: 0.8rem;
}


.top-nav {
  padding-left: 52px;
  padding-right: 52px;
}


[data-motion="off"] *,
[data-motion="off"] *::before,
[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}

[data-motion="off"] .button:hover,
[data-motion="off"] .button:active,
[data-motion="off"] .project-card:hover {
  transform: none;
}

[data-motion="off"] .photo:hover {
  translate: none;
}


[data-panda="still"] .fp-tumble,
[data-panda="still"] .symbol {
  animation: none !important;
}
