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

:root {
  --bg: #0d0d0f;
  --surface: #141418;
  --surface2: #1c1c22;

  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.12);

  --text: #f0ede8;
  --muted: rgba(240, 237, 232, 0.5);
  --hint: rgba(240, 237, 232, 0.28);

  --accent: #c4a882;
  --accent2: #8b7bb5;
  --accent3: #6daa8f;

  --font-display: "DM Serif Display", serif;
  --font-ui: "Syne", sans-serif;
  --font-mono: "DM Mono", monospace;

  --radius: 12px;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background-color: #0d0d0f;
}

body {
  min-height: 100vh;
  min-height: 100dvh;

  overflow-x: hidden;

  background-color: #0d0d0f;
  color: var(--text);

  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;

  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

body::before {
  content: "";

  position: fixed;
  inset: 0;
  z-index: 0;

  pointer-events: none;

  opacity: 0.6;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  z-index: 0;

  border-radius: 50%;

  pointer-events: none;

  filter: blur(80px);
  opacity: 0.12;
}

.orb-1 {
  width: 500px;
  height: 500px;

  top: -150px;
  right: -100px;

  background: var(--accent2);
}

.orb-2 {
  width: 400px;
  height: 400px;

  bottom: 100px;
  left: -150px;

  background: var(--accent3);
}

.orb-3 {
  width: 300px;
  height: 300px;

  top: 50%;
  left: 50%;

  opacity: 0.06;

  background: var(--accent);

  transform: translate(-50%, -50%);
}

.container {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 520px;

  margin: 0 auto;
  padding: 48px 24px 0;
}




.profile {
  display: flex;
  align-items: flex-start;

  gap: 20px;

  margin-bottom: 28px;

  animation: fade-up 0.7s 0.1s ease both;
}

.avatar-wrap {
  position: relative;

  flex-shrink: 0;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 80px;
  height: 80px;

  overflow: hidden;

  border: 2px solid var(--border2);
  border-radius: 50%;

  background: var(--surface2);
  color: var(--accent);

  font-family: var(--font-display);
  font-size: 28px;
}

.avatar img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.avatar-ring {
  position: absolute;
  inset: -4px;

  border: 1.5px solid transparent;
  border-radius: 50%;

  background:
    linear-gradient(135deg, var(--accent2), var(--accent3))
    border-box;

  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: destination-out;

  mask-composite: exclude;
}

.profile-info {
  min-width: 0;
}

.profile-info h1 {
  margin-bottom: 4px;

  color: var(--text);

  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
}

.profile-info h1 em {
  color: var(--accent);

  font-style: italic;
}

.pronouns {
  color: var(--accent2);

  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.meta-row {
  display: flex;
  align-items: center;

  gap: 8px;

  margin-bottom: 36px;

  color: var(--hint);

  font-family: var(--font-mono);
  font-size: 12px;

  animation: fade-up 0.7s 0.18s ease both;
}

.meta-row svg {
  flex-shrink: 0;

  opacity: 0.5;
}

.section-label {
  margin-bottom: 14px;

  color: var(--hint);

  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.roles {
  display: flex;
  flex-direction: column;

  gap: 10px;

  margin-bottom: 40px;

  animation: fade-up 0.7s 0.22s ease both;
}

.role-card {
  position: relative;

  display: flex;
  align-items: center;

  gap: 14px;

  overflow: hidden;

  padding: 14px 16px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--surface);
  color: inherit;

  text-decoration: none;

  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.role-card::before {
  content: "";

  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  height: 1px;

  opacity: 0;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--border2),
      transparent
    );

  transition: opacity 0.2s;
}

.role-card:hover {
  border-color: var(--border2);

  background: var(--surface2);

  transform: translateY(-1px);
}

.role-card:hover::before {
  opacity: 1;
}

.role-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  flex-shrink: 0;

  border-radius: 9px;

  font-size: 16px;
}

.role-icon.yellow {
  background: rgba(196, 168, 130, 0.12);
}

.role-icon.purple {
  background: rgba(139, 123, 181, 0.12);
}

.role-icon.green {
  background: rgba(109, 170, 143, 0.12);
}

.role-text {
  min-width: 0;

  flex: 1;
}

.role-title {
  overflow: hidden;

  color: var(--text);

  font-size: 13px;
  font-weight: 700;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-org {
  margin-top: 1px;

  color: var(--muted);

  font-size: 12px;
}

.role-arrow {
  flex-shrink: 0;

  color: var(--hint);

  font-size: 12px;

  transition:
    transform 0.2s,
    color 0.2s;
}

.role-card:hover .role-arrow {
  color: var(--muted);

  transform: translateX(2px);
}

.divider {
  height: 1px;

  margin: 32px 0;

  background: var(--border);
}

.links {
  display: flex;
  flex-direction: column;

  gap: 8px;

  margin-bottom: 52px;

  animation: fade-up 0.7s 0.28s ease both;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 58px;

  padding: 13px 18px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: transparent;
  color: var(--text);

  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;

  text-decoration: none;

  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}

.link-btn:hover {
  border-color: var(--border2);

  background: var(--surface2);

  transform: translateX(3px);
}

.link-left {
  display: flex;
  align-items: center;

  min-width: 0;

  gap: 12px;
}

.link-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  flex-shrink: 0;

  border-radius: 7px;

  background: var(--surface2);

  font-size: 14px;

  transition: background 0.2s;
}

.link-btn:hover .link-icon {
  background: rgba(255, 255, 255, 0.08);
}

.link-name,
.link-handle {
  display: block;
}

.link-handle {
  margin-top: 1px;

  overflow-wrap: anywhere;

  color: var(--hint);

  font-family: var(--font-mono);
  font-size: 11px;
}

.arrow {
  flex-shrink: 0;

  color: var(--hint);

  font-size: 11px;

  transition: transform 0.2s;
}

.link-btn:hover .arrow {
  transform: translate(2px, -2px);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    24px
    0
    calc(40px + env(safe-area-inset-bottom));

  border-top: 1px solid var(--border);

  animation: fade-up 0.7s 0.35s ease both;
}

.footer-sig {
  color: var(--hint);

  font-family: var(--font-mono);
  font-size: 11px;
}

.footer-sig span {
  color: var(--accent);
}

.footer-made {
  color: rgba(240, 237, 232, 0.18);

  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

@keyframes fade-up {
  from {
    opacity: 0;

    transform: translateY(16px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;

    transform: scale(1);
  }

  50% {
    opacity: 0.6;

    transform: scale(0.85);
  }
}

@media (max-width: 560px) {
  .container {
    padding: 32px 18px 0;
  }

  .profile {
    align-items: center;

    gap: 16px;

    margin-bottom: 24px;
  }

  .avatar {
    width: 70px;
    height: 70px;
  }

  .profile-info h1 {
    font-size: clamp(27px, 8vw, 32px);
  }

  .pronouns {
    line-height: 1.5;
  }

  .meta-row {
    margin-bottom: 30px;

    line-height: 1.45;
  }

  .role-card {
    padding: 13px 14px;
  }

  .role-title {
    white-space: normal;
  }

  .links {
    margin-bottom: 40px;
  }

  .link-btn {
    padding: 13px 14px;
  }

  footer {
    align-items: flex-start;

    gap: 10px;
  }
}

@media (max-width: 380px) {
  .container {
    padding-right: 14px;
    padding-left: 14px;
  }

  .avatar {
    width: 62px;
    height: 62px;
  }

  .profile-info h1 {
    font-size: 25px;
  }

  .pronouns {
    font-size: 10px;
  }

  .role-icon {
    width: 34px;
    height: 34px;
  }

  footer {
    flex-direction: column;
  }
}

@media (hover: none) {
  .role-card:hover,
  .link-btn:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.footer-links {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
}

.footer-links a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.legal-dialog {
  width: min(92vw, 560px);
  max-height: min(84vh, 760px);
  overflow: auto;

  padding: 0;

  border: 1px solid var(--border2);
  border-radius: 18px;

  background: var(--surface);
  color: var(--text);

  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.legal-dialog::backdrop {
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(8px);
}

.legal-dialog-inner {
  position: relative;

  padding: 32px;
}

.legal-dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;

  width: 38px;
  height: 38px;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: var(--surface2);
  color: var(--muted);

  cursor: pointer;

  font: inherit;
  font-size: 24px;
  line-height: 1;

  transition:
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.legal-dialog-close:hover,
.legal-dialog-close:focus-visible {
  border-color: var(--border2);
  color: var(--text);
  transform: rotate(4deg);
}

.legal-eyebrow {
  margin-bottom: 6px;

  color: var(--accent2);

  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-dialog h2 {
  margin: 0 48px 24px 0;

  color: var(--text);

  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.1;
}

.legal-dialog h3 {
  margin: 24px 0 8px;

  color: var(--accent);

  font-size: 14px;
}

.legal-dialog p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.legal-date {
  margin-top: 26px;

  color: var(--hint) !important;

  font-family: var(--font-mono);
  font-size: 10px !important;
}

@media (max-width: 560px) {
  .legal-dialog-inner {
    padding: 26px 22px;
  }

  .legal-dialog h2 {
    font-size: 30px;
  }
}

.legal-dialog {
  margin: auto;
}

.footer-links {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: end;
  gap: 4px 12px;
}

.footer-links .footer-made {
  grid-column: 1 / -1;
  justify-self: end;
}
