:root {
  color-scheme: dark;
  font-family: "IBM Plex Mono", monospace;
  background: #000;
}

/* Minecraft by Craftron Gaming: https://www.dafont.com/minecraft.font */
@font-face {
  font-family: "Minecraft";
  src: url("/fonts/Minecraft.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
  *,
  *::before,
  *::after {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='4' fill='%23fff'/%3E%3C/svg%3E") 5 5, default;
  }

  a,
  a *,
  button,
  button *,
  input,
  select,
  textarea,
  summary,
  summary *,
  label,
  label *,
  [role="button"],
  [role="button"] *,
  [tabindex]:not([tabindex="-1"]),
  [tabindex]:not([tabindex="-1"]) * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='5.5' fill='%2339ff69'/%3E%3C/svg%3E") 7 7, pointer;
  }
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: #fff;
  background: #000;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  min-height: 4.5rem;
  padding: 10px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.signature-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.signature {
  width: min(240px, 70vw);
  height: auto;
  display: block;
}

.profile-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 24px;
  display: grid;
  place-items: center;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  animation: profile-fade-in 1.4s ease-out .15s forwards;
}

.portrait-frame {
  width: clamp(36px, 5vw, 50px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
}

.portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
}

.profile-copy {
  color: #fff;
  text-align: center;
}

.role {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
  line-height: 1.25;
}

.company-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s ease;
}

.company-link:hover,
.company-link:focus-visible {
  opacity: .72;
}

.external-arrow {
  width: 16px;
  height: 16px;
  padding: 3px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: rgba(255, 255, 255, .78);
  transform: rotate(315deg);
}

.description {
  width: min(540px, calc(100vw - 48px));
  margin: 12px 0 0;
  color: #fff;
  font-size: 11px;
  line-height: 1.65;
  opacity: .4;
}

.social-links {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.social-link {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, .4);
  transition: color .2s ease, transform .2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}

.social-link svg {
  width: 100%;
  height: 100%;
  display: block;
}

.linkedin-link svg {
  fill: currentColor;
}

.email-link svg {
  fill: currentColor;
}

.email-link {
  width: 24px;
  height: 24px;
}

.not-found-page {
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 24px;
  display: grid;
  place-items: center;
}

.not-found {
  max-width: 540px;
  text-align: center;
  opacity: 0;
  animation: profile-fade-in 1.4s ease-out .15s forwards;
}

.not-found-code {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .4);
  font-size: 10px;
  letter-spacing: .16em;
}

.not-found h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  color: #fff;
  font-family: "Minecraft", monospace;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  animation: not-found-glitch 5s linear infinite;
}

.not-found h1::before,
.not-found h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.not-found h1::before {
  color: #54ffff;
  animation: not-found-glitch-cyan 5s steps(1, end) infinite;
}

.not-found h1::after {
  color: #ff3864;
  animation: not-found-glitch-red 5s steps(1, end) infinite;
}

.not-found-message {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .4);
  font-size: 11px;
  line-height: 1.65;
}

.home-link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.home-link svg {
  width: 16px;
  height: 16px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
}

.home-link:hover,
.home-link:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}

.signature-link:focus-visible,
.company-link:focus-visible,
.social-link:focus-visible,
.home-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@keyframes profile-fade-in {
  to {
    opacity: 1;
  }
}

@keyframes not-found-glitch {
  0%,
  91.9%,
  98%,
  100% {
    transform: translate(0);
    text-shadow: none;
  }

  92% {
    transform: translate(-2px, 0);
    text-shadow: 2px 0 #ff3864, -2px 0 #54ffff;
  }

  93% {
    transform: translate(2px, -1px);
    text-shadow: -2px 0 #ff3864, 2px 0 #54ffff;
  }

  94% {
    transform: translate(-1px, 1px);
  }

  95% {
    transform: translate(2px, 0);
    text-shadow: 2px 0 #54ffff, -2px 0 #ff3864;
  }

  96% {
    transform: translate(-2px, -1px);
  }

  97% {
    transform: translate(1px, 1px);
    text-shadow: -1px 0 #54ffff, 1px 0 #ff3864;
  }
}

@keyframes not-found-glitch-cyan {
  0%,
  91.9%,
  98%,
  100% {
    opacity: 0;
    transform: translate(0);
  }

  92% {
    opacity: .8;
    clip-path: inset(8% 0 62%);
    transform: translate(-4px, 0);
  }

  94% {
    opacity: .65;
    clip-path: inset(48% 0 28%);
    transform: translate(3px, 0);
  }

  96% {
    opacity: .75;
    clip-path: inset(72% 0 6%);
    transform: translate(-3px, 0);
  }
}

@keyframes not-found-glitch-red {
  0%,
  91.9%,
  98%,
  100% {
    opacity: 0;
    transform: translate(0);
  }

  93% {
    opacity: .75;
    clip-path: inset(58% 0 17%);
    transform: translate(4px, 0);
  }

  95% {
    opacity: .7;
    clip-path: inset(18% 0 54%);
    transform: translate(-3px, 0);
  }

  97% {
    opacity: .8;
    clip-path: inset(78% 0 4%);
    transform: translate(3px, 0);
  }
}

@media (max-width: 767px) {
  .profile-page {
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile,
  .not-found {
    opacity: 1;
    animation: none;
  }

  .not-found h1,
  .not-found h1::before,
  .not-found h1::after {
    animation: none;
  }
}
