@font-face {
  font-family: "Kaushan Script";
  src: url("fonts/KaushanScript-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --matte-black: #111111;
  --matte-white: #ececec;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--matte-black);
  color: var(--matte-white);
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
}

.particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  filter: blur(5px);
  opacity: 0;
  transition: opacity 3s ease;
}

.particles.is-live {
  opacity: 1;
}

.veil {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 25%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 700ms ease;
}

.veil.is-live {
  opacity: 1;
}

.stage {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.site-footer {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 0;
  width: 100%;
  z-index: 3;
  color: rgb(236 236 236 / 45%);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-align: center;
}

.mark {
  position: relative;
  display: grid;
  place-items: center;
}

.stage.is-loaded {
  padding: 28px 20px 110px;
  overflow-y: auto;
}

.stage.is-loaded .mark {
  width: 100%;
  min-height: min-content;
  margin-block: auto;
}

.profile-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 360px);
  padding: clamp(18px, 4vw, 24px);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 10%), transparent 38%, rgb(255 255 255 / 3%) 70%, rgb(255 255 255 / 8%)),
    rgb(12 14 18 / 28%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 50%),
    inset 1px 0 0 rgb(255 255 255 / 18%),
    inset 0 -1px 0 rgb(255 255 255 / 22%),
    inset 0 0 24px rgb(255 255 255 / 4%),
    0 12px 36px rgb(0 0 0 / 18%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgb(255 255 255 / 75%), rgb(255 255 255 / 8%) 28%,
    transparent 48%, rgb(255 255 255 / 12%) 72%, rgb(255 255 255 / 50%));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 8% 0%, rgb(255 255 255 / 14%), transparent 52%),
    radial-gradient(ellipse at 100% 100%, rgb(220 230 255 / 7%), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .profile-card {
    background-color: rgb(18 20 24 / 85%);
  }
}

.profile-card.is-in {
  opacity: 1;
  transform: translateY(0);
}

.profile-card .logo-stack {
  position: relative;
  inset: auto;
  width: min(100%, 220px);
  margin-inline: auto;
  transform: none;
}

.projects {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 85%);
}

.projects h2 {
  margin-bottom: 6px;
}

.projects h2,
.footer-signature {
  font-family: "Kaushan Script", "Segoe Print", cursive;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.03em;
  text-align: left;
  color: #fff;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  color: var(--matte-white);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.65;
  transition: opacity 180ms ease;
}

.project-link:hover {
  opacity: 1;
}

.project-link svg {
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.project-link:hover svg {
  transform: translateX(3px);
}

.project-link + .project-link {
  margin-top: 0;
}

.project-link:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}

.footer-signature {
  margin-top: 18px;
  text-align: center;
  font-size: 20px;
  color: #d9b6ff;
  text-shadow:
    -1px 0 rgb(111 215 255 / 65%),
    1px 1px rgb(244 112 255 / 75%),
    0 0 10px rgb(182 100 255 / 60%),
    0 0 24px rgb(138 65 225 / 35%);
}

.logo-stack {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(78vw, 560px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.logo-stack[hidden] {
  display: block;
  opacity: 0;
}

.logo-stack.is-in {
  opacity: 1;
  transition: opacity 640ms ease;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.logo-glow {
  position: relative;
}

.discord-contact {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.discord-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid rgb(210 185 255 / 16%);
  border-radius: 999px;
  background: rgb(210 185 255 / 4%);
  color: #e5dbf6;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.discord-btn:hover {
  background: rgb(210 185 255 / 10%);
  border-color: rgb(210 185 255 / 40%);
}

.discord-btn > svg:first-child {
  width: 16px;
  height: 16px;
  color: #cbb6ee;
}

.discord-btn > svg:last-child {
  margin-left: 6px;
  opacity: 0.45;
}

.discord-btn:focus-visible {
  outline: 2px solid #c4a1ee;
  outline-offset: 4px;
}

.discord-notice {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 100%;
  padding: 16px 20px;
  border: 1px solid rgb(196 161 238 / 50%);
  border-radius: 10px;
  background: rgb(22 17 29 / 94%);
  color: var(--matte-white);
  text-align: center;
  font-size: 14px;
  box-shadow: 0 8px 32px rgb(0 0 0 / 30%);
  animation: discord-notice-in 200ms ease-out;
}

@keyframes discord-notice-in {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.hire-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #e6d5ff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 180ms ease;
}

.hire-btn:hover { color: #fff; }

.hire-btn:focus-visible,
.hire-close:focus-visible {
  outline: 1px solid #d9b6ff;
  outline-offset: 3px;
}

.hire-dialog {
  margin: auto;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid rgb(214 178 255 / 35%);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 0% 0%, rgb(192 133 255 / 25%), transparent 52%),
    radial-gradient(ellipse at 100% 70%, rgb(126 64 213 / 20%), transparent 55%),
    linear-gradient(135deg, rgb(255 235 255 / 9%), transparent 30%, transparent 70%, rgb(188 142 255 / 9%)),
    rgb(23 13 36 / 82%);
  background-attachment: local;
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  backdrop-filter: blur(28px) saturate(165%);
  color: var(--matte-white);
  box-shadow:
    inset 0 1px 0 rgb(255 232 255 / 55%),
    inset 1px 0 0 rgb(224 183 255 / 20%),
    inset 0 -1px 0 rgb(190 145 255 / 30%),
    inset 0 0 30px rgb(176 102 255 / 6%),
    0 0 36px rgb(133 57 214 / 12%),
    0 24px 80px rgb(0 0 0 / 40%);
  scrollbar-color: #78539a transparent;
}

.hire-dialog::backdrop {
  background: rgb(13 5 22 / 48%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hire-dialog { background-color: #21132f; }
}

.hire-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hire-eyebrow {
  color: #c5afd9;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.hire-close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  color: #e0d6ea;
  font-size: 26px;
  cursor: pointer;
}

.hire-dialog h2 {
  margin: 4px 0 14px;
  font-family: "Kaushan Script", "Segoe Print", cursive;
  font-size: 30px;
  font-weight: 400;
}

.dialog-title-row {
  align-items: flex-start;
  margin-bottom: 14px;
}

.dialog-title-row > h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  line-height: 1.4;
}

.dialog-title-row > .hire-close {
  flex-shrink: 0;
}

.hire-intro {
  font-size: 13px;
  line-height: 1.75;
  color: #c9c4ce;
}

.hire-services {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.hire-services strong,
.hire-services span { display: block; }
.hire-services strong { font-size: 13px; font-weight: 500; }
.hire-services span { margin-top: 3px; color: #aaa3b4; font-size: 12px; line-height: 1.5; }
.skills-title { padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 15%); font-size: 13px; font-weight: 500; }
.hire-skills { display: grid; gap: 12px; margin-top: 16px; }
.hire-skills label { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; font-size: 12px; color: #d2cbdc; }
.hire-skills label > span { color: #bda1dc; font-variant-numeric: tabular-nums; }
.hire-skills progress { grid-column: 1 / -1; appearance: none; width: 100%; height: 3px; border: 0; border-radius: 2px; overflow: hidden; background: rgb(255 255 255 / 9%); }
.hire-skills progress::-webkit-progress-bar { background: rgb(255 255 255 / 9%); }
.hire-skills progress::-webkit-progress-value { background: linear-gradient(90deg, #9063c4, #d6bcf4); }
.hire-skills progress::-moz-progress-bar { background: linear-gradient(90deg, #9063c4, #d6bcf4); }
.hire-contact { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 15%); text-align: center; }
.hire-contact > p { font-size: 12px; color: #bcb3c8; line-height: 1.5; }
.hire-contact .discord-btn { margin: 12px auto 0; }
.hire-contact .hire-copy-notice { margin-top: 10px; color: #dfc6ff; }

.pricing-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  margin-bottom: 18px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgb(217 182 255 / 25%);
  background: transparent;
  color: #e4ccff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.pricing-open:hover { color: white; border-color: #d9b6ff; }
.pricing-open:focus-visible { outline: 1px solid #d9b6ff; outline-offset: 4px; }
.currency-label { display: flex; align-items: center; gap: 10px; color: #bfb2ce; font-size: 12px; }
.pricing-dialog select {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid rgb(212 173 255 / 25%);
  border-radius: 8px;
  background: rgb(51 30 71 / 75%);
  color: #eee7f5;
  font: inherit;
  font-size: 13px;
  color-scheme: dark;
}
.pricing-dialog option { background: #271936; color: #eee7f5; }
.pricing-dialog select:focus-visible,
.pricing-dialog input:focus-visible { outline: 2px solid #c4a1ee; outline-offset: 3px; }
.pricing-form { display: grid; gap: 10px; margin-top: 24px; }
.pricing-form > label { font-size: 12px; color: #ddd2e8; }
.pricing-form > select { width: 100%; }
.pricing-hint { color: #b9adca; font-size: 12px; line-height: 1.6; }
.pricing-slider { display: flex; align-items: center; gap: 16px; min-height: 36px; margin-bottom: 6px; }
.pricing-slider input { flex: 1; min-width: 0; accent-color: #c4a1ee; cursor: pointer; }
.pricing-slider output { min-width: 24px; text-align: right; color: #e3cefa; font-variant-numeric: tabular-nums; }
.pricing-extras { display: grid; gap: 6px; margin-top: 10px; padding: 0; border: 0; }
.pricing-extras legend { margin-bottom: 8px; font-size: 12px; color: #ddd2e8; }
.pricing-extras label { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 12px; color: #c9bed4; cursor: pointer; }
.pricing-extras input { width: 16px; height: 16px; flex-shrink: 0; accent-color: #c4a1ee; }
.pricing-result { margin-top: 24px; padding: 22px 0 16px; border-top: 1px solid rgb(255 255 255 / 18%); }
.pricing-total { margin: 8px 0; font-size: clamp(22px, 6vw, 32px); line-height: 1.35; letter-spacing: -0.04em; color: #ead8ff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pricing-disclaimer { font-size: 12px; line-height: 1.65; color: #d3c7de; }
.pricing-fx-note { margin-top: 10px; font-size: 10px; line-height: 1.6; color: #a398b1; }

.discord-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hire-contact .discord-actions { margin-top: 12px; }
.hire-contact .discord-actions .discord-btn { margin: 0; }
.verify-contact { position: relative; display: inline-flex; }
.verify-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff787d;
  cursor: pointer;
}
.verify-btn > span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font: 700 12px/1 "Segoe UI", sans-serif;
}
.verify-btn:hover { color: #ffb0b3; }
.verify-btn:focus-visible { outline: 1px solid #ff787d; outline-offset: 1px; border-radius: 6px; }
.verify-tooltip {
  pointer-events: auto;
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  z-index: 5;
  width: min(240px, calc(100vw - 80px));
  padding: 12px 14px;
  border: 1px solid rgb(255 120 125 / 30%);
  border-radius: 10px;
  background: #211b24;
  color: #eee2e8;
  box-shadow: 0 6px 24px rgb(0 0 0 / 30%);
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transition: opacity 150ms ease, visibility 150ms ease;
}
.verify-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 8px;
}
.verify-contact:not(.tip-dismissed):hover .verify-tooltip,
.verify-contact:not(.tip-dismissed):has(.verify-btn:focus-visible) .verify-tooltip { visibility: visible; opacity: 1; }
.verify-contact.tip-dismissed .verify-tooltip {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.verify-id {
  margin: 22px 0;
}
.verify-id > span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  color: #b9adca;
}
.verify-id > code {
  display: block;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 400;
  color: #eee7f5;
  user-select: all;
  overflow-wrap: anywhere;
}
.verify-id .discord-btn { margin-top: 12px; font-size: 12px; }
.verify-id p { margin-top: 10px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.verify-steps { display: grid; gap: 16px; margin: 24px 0; padding-left: 20px; color: #c9c4ce; font-size: 13px; line-height: 1.7; }
.verify-steps strong { color: #f0e7f6; font-weight: 500; }
.verify-steps code { overflow-wrap: anywhere; }
.verify-warning { color: #ffb0b3; font-size: 12px; line-height: 1.7; }
.verify-help { display: inline-block; margin-top: 18px; color: #cbb6ee; font-size: 12px; line-height: 1.6; text-underline-offset: 3px; }

.logo--wave-a,
.logo--wave-b {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
}

.logo-stack.is-glitching .logo-glow {
  animation: purple-wave-glow var(--glitch-duration) ease-in-out both;
}

.logo-stack.is-glitching .logo--base {
  animation: purple-wave-shift var(--glitch-duration) ease-in-out both;
}

.logo-stack.is-glitching .logo--wave-a,
.logo-stack.is-glitching .logo--wave-b {
  filter: brightness(0) invert(32%) sepia(86%) saturate(2476%)
    hue-rotate(252deg) brightness(1.05);
  animation: purple-wave-band var(--glitch-duration) ease-in-out both;
}

.logo-stack.is-glitching .logo--wave-a {
  transform: translate(-10px, 1px);
  clip-path: polygon(0 10%, 100% 18%, 100% 36%, 0 28%);
}

.logo-stack.is-glitching .logo--wave-b {
  transform: translate(11px, -1px);
  clip-path: polygon(0 56%, 100% 48%, 100% 76%, 0 84%);
  animation-delay: var(--glitch-delay);
  animation-direction: reverse;
}

@keyframes purple-wave-glow {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgb(168 85 247 / 0%))
      drop-shadow(0 0 rgb(126 34 206 / 0%))
      drop-shadow(0 0 rgb(216 180 254 / 0%));
  }
  45% {
    filter: drop-shadow(0 0 16px rgb(168 85 247 / 90%))
      drop-shadow(8px 0 rgb(126 34 206 / 80%))
      drop-shadow(-6px 0 rgb(216 180 254 / 70%));
  }
}

@keyframes purple-wave-shift {
  0%, 100% {
    transform: translate(0, 0);
  }
  40% {
    transform: translate(-3px, 1px);
  }
  70% {
    transform: translate(2px, -1px);
  }
}

@keyframes purple-wave-band {
  0% {
    opacity: 0;
    transform: translate(-14px, 0);
  }
  45% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translate(12px, 0);
  }
}

