:root {
  --bg: #000;
  --fg: #fff;
  --muted: #9a9a9a;
  --rule: #1f1f1f;
  --accent: #fff;
  --max-w: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.hero {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}

.logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 32px;
}

.logo img {
  display: block;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

h3 {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 12px;
}

.lede {
  color: var(--muted);
  font-size: 1.0625rem;
  margin: 0;
  max-width: 58ch;
}

.role {
  padding: 48px 0;
}

.role-head {
  margin-bottom: 24px;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  font-size: 0.8125rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px 10px;
}

.role p {
  color: #d0d0d0;
}

.role ul:not(.tags) {
  padding-left: 20px;
  margin: 0;
}

.role ul:not(.tags) li {
  margin-bottom: 6px;
  color: #d0d0d0;
}

.apply {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.apply p {
  margin: 0 0 8px;
  color: var(--muted);
}

.email {
  font-size: 1.125rem;
  font-weight: 500;
}

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

footer a {
  color: var(--muted);
}

.has-bit {
  position: relative;
}

.bit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  vertical-align: middle;
  font-size: 0.8125rem;
  color: var(--muted);
  user-select: none;
}

.bit-creature {
  display: inline-block;
  width: 22px;
  height: 22px;
  color: var(--fg);
  animation: bit-float 2.6s ease-in-out infinite;
  flex: 0 0 auto;
}

.bit-creature svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.bit-creature .bit-hole {
  fill: var(--bg);
}

.bit-bubble {
  position: relative;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  padding: 4px 9px;
  line-height: 1.3;
  white-space: nowrap;
}

.bit-bubble::before,
.bit-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  transform: translateY(-50%);
}

.bit-bubble::before {
  left: -6px;
  border-width: 5px 6px 5px 0;
  border-color: transparent #2a2a2a transparent transparent;
}

.bit-bubble::after {
  left: -5px;
  border-width: 4px 5px 4px 0;
  border-color: transparent #141414 transparent transparent;
}

@keyframes bit-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.bit-creature--dab {
  animation: none;
}

.bit-creature--dab svg {
  overflow: visible;
}

/*
 * Dab pose: two hands form a diagonal line pointing away from the body.
 * Phase 1 (dab-left):  near hand at lower-left shoulder, far hand up-out
 *                      top-left; legs twist right (body leans left).
 * Phase 2 (dab-right): mirror — both hands on the right, legs twist left.
 */

.bit-hand--near {
  animation: bit-hand-near 0.9s steps(1, end) infinite;
}

.bit-hand--far {
  animation: bit-hand-far 0.9s steps(1, end) infinite;
}

.bit-leg--l {
  animation: bit-leg-l 0.9s steps(1, end) infinite;
}

.bit-leg--r {
  animation: bit-leg-r 0.9s steps(1, end) infinite;
}

@keyframes bit-hand-near {
  0%, 49.99% {
    x: 1;
    y: 5;
  }
  50%, 100% {
    x: 13;
    y: 5;
  }
}

@keyframes bit-hand-far {
  0%, 49.99% {
    x: -1;
    y: 3;
  }
  50%, 100% {
    x: 15;
    y: 3;
  }
}

@keyframes bit-leg-l {
  0%, 49.99% {
    x: 5;
  }
  50%, 100% {
    x: 3;
  }
}

@keyframes bit-leg-r {
  0%, 49.99% {
    x: 11;
  }
  50%, 100% {
    x: 9;
  }
}

.bit--compact {
  margin-left: 6px;
  margin-right: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .bit-creature,
  .bit-hand,
  .bit-leg {
    animation: none;
  }
}

@media (max-width: 560px) {
  main {
    padding: 48px 20px 72px;
  }
  h1 {
    font-size: 1.625rem;
  }
  .bit {
    display: flex;
    margin-left: 0;
    margin-top: 6px;
  }
  .bit-bubble {
    white-space: normal;
  }
}
