:root {
  color-scheme: dark;
  --ink: #0a0815;
  --surface: #0f0c1b;
  --surface-edge: #272033;
  --paper: #fbfafc;
  --muted: #d0cad7;
  --purple: #8423f6;
  --purple-bright: #9a35ff;
  --purple-dark: #361174;
  --outline: #08070c;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(ellipse 52% 37% at 61% 31%, rgba(57, 23, 103, 0.12), transparent 65%),
    radial-gradient(ellipse 50% 34% at 19% 78%, rgba(46, 17, 86, 0.06), transparent 74%),
    #090716;
  font-family: "Space Mono", Consolas, "Courier New", monospace;
}

body::before {
  position: fixed;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.012;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-shell {
  position: relative;
  width: min(840px, calc(100% - 48px));
  min-height: 1536px;
  margin: 0 auto;
  padding: 64px 0 175px;
}

.hero {
  position: relative;
  min-height: 580px;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 145px;
  left: 0;
  width: 410px;
}

.hello,
h1,
.alias,
.work-heading h2 {
  margin: 0;
  font-family: Kalam, "Comic Sans MS", cursive;
  font-weight: 700;
}

.hello {
  position: relative;
  width: fit-content;
  margin-left: 8px;
  color: var(--purple-bright);
  font-size: 51px;
  line-height: 0.9;
  letter-spacing: -2px;
  transform: rotate(-3deg);
}

.hello::after {
  position: absolute;
  top: -17px;
  right: -29px;
  width: 34px;
  height: 32px;
  content: "";
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg' fill='none'%3E%3Cpath d='m9 18 6 5M20 5v11m12-3-7 6' stroke='%239a35ff' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

h1 {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-left: -2px;
  margin-top: 40px;
  font-size: 108px;
  line-height: 0.92;
  letter-spacing: 0;
  word-spacing: normal;
  transform: scaleX(0.92);
  transform-origin: left center;
  white-space: nowrap;
}

.title-prefix,
.first-name {
  display: inline-block;
  margin-left: 0;
}

.title-prefix {
  letter-spacing: -4px;
}

.first-name {
  letter-spacing: -16px;
}

.alias {
  margin: 21px 0 0 16px;
  font-size: 65px;
  line-height: 0.95;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.alias strong {
  display: inline-block;
  margin-left: 0.135em;
  color: var(--purple-bright);
  font-size: 1.45em;
  font-weight: inherit;
  letter-spacing: -9.7px;
  text-shadow: 0 0 26px rgba(130, 35, 246, 0.22);
}

.title-stroke {
  display: block;
  width: 302px;
  height: auto;
  margin: 23px 0 0 15px;
  overflow: visible;
}

.title-stroke path {
  fill: none;
  stroke: var(--purple);
  stroke-linecap: round;
}

.title-stroke path:first-child {
  stroke-width: 7;
}

.title-stroke path:last-child {
  stroke-width: 2.5;
  opacity: 0.75;
}

.hero-art {
  position: absolute;
  top: 45px;
  right: -19px;
  width: 472px;
  aspect-ratio: 472 / 610;
  margin: 0;
}

.hero-loop-arrow {
  position: absolute;
  top: 464px;
  left: 344px;
  z-index: 1;
  width: 98px;
}

.brush-halo {
  position: absolute;
  z-index: 0;
  top: 9.5%;
  right: 2.5%;
  width: 89%;
  aspect-ratio: 1;
  height: auto;
  overflow: visible;
}

.halo-fill {
  fill: url(#halo-violet);
}

.halo-ink {
  fill: none;
  stroke: #5c19ad;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.halo-ink.thick {
  stroke-width: 11;
  stroke-dasharray: 265 18 76 10;
  opacity: 0.88;
}

.halo-ink.medium {
  stroke: #7621d2;
  stroke-width: 5;
  stroke-dasharray: 105 13 45 8;
  opacity: 0.84;
}

.halo-ink.fine {
  stroke: #4d157f;
  stroke-width: 3;
  stroke-dasharray: 50 17;
  opacity: 0.92;
}

.halo-ink.dry {
  stroke: #8a2ee7;
  stroke-width: 5;
  stroke-dasharray: 12 9;
  opacity: 0.6;
}

.profile-photo {
  position: absolute;
  z-index: 2;
  top: 16%;
  right: 11%;
  width: 72%;
  height: 55.75%;
  overflow: hidden;
  border: 7px solid var(--outline);
  border-radius: 50%;
  background: #270752;
  box-shadow: 0 16px 37px rgba(0, 0, 0, 0.25);
  transform: rotate(2deg);
}

.profile-photo picture,
.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.profile-photo img {
  object-fit: cover;
  transform: scale(1.04) rotate(-2deg);
}

.hero-doodle {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.crown {
  top: 5.2%;
  left: 9.2%;
  width: 13%;
  transform: rotate(-14deg);
}

.lightning {
  top: 2.5%;
  right: -3.2%;
  width: 7%;
  filter: drop-shadow(0 0 8px rgba(132, 35, 246, 0.3));
  transform: rotate(7deg);
}

.cross {
  position: absolute;
  z-index: 3;
  width: 4.53%;
  height: 3.94%;
}

.cross::before,
.cross::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 5px;
  border-radius: 10px;
  background: #6f22ce;
  content: "";
}

.cross::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.cross::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.cross-one {
  top: 2.7%;
  left: 30.5%;
  width: 2.64%;
  height: 2.3%;
}

.cross-one::before,
.cross-one::after {
  height: 3px;
}

.cross-two {
  right: 9.5%;
  bottom: 7.5%;
  width: 3.02%;
  height: 2.63%;
}

.cross-two::before,
.cross-two::after {
  height: 3px;
}

.hero-dot {
  position: absolute;
  z-index: 3;
  width: 1.51%;
  height: 1.31%;
  border-radius: 50%;
  background: #7629d5;
}

.dot-one {
  top: -3.61%;
  left: 47.5%;
}

.work {
  position: relative;
  top: 1px;
}

.work-heading {
  display: flex;
  align-items: center;
  gap: 42px;
  margin: 3px 0 19px 16px;
}

.work-heading h2 {
  position: relative;
  font-size: 43px;
  line-height: 1;
  letter-spacing: -2.4px;
  transform: rotate(-2deg);
}

.work-heading h2::after {
  position: absolute;
  bottom: -9px;
  left: -2px;
  width: 160px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--purple-bright), #9d5eff 92%, transparent);
  content: "";
  transform: rotate(1deg);
}

.work-heading img {
  width: 46px;
  margin-top: 36px;
  transform: rotate(6deg);
}

.project-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 46px;
  height: 200px;
  min-height: 200px;
  padding: 27px 35px 27px 42px;
  overflow: hidden;
  border: 1px solid rgba(107, 88, 139, 0.22);
  border-radius: 26px;
  color: inherit;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.018), transparent 42%), rgba(15, 12, 27, 0.58);
  box-shadow: 0 15px 46px rgba(0, 0, 0, 0.13);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card::after {
  position: absolute;
  right: -52px;
  bottom: -75px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(132, 35, 246, 0.16), transparent 68%);
  content: "";
  transition: opacity 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(154, 53, 255, 0.68);
  background: linear-gradient(110deg, rgba(132, 35, 246, 0.08), transparent 48%), #120d22;
  outline: none;
  transform: translateY(-3px);
}

.project-card:hover::after,
.project-card:focus-visible::after {
  opacity: 1;
}

.project-icon {
  position: relative;
  display: grid;
  width: 144px;
  height: 144px;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, #191725, #12111b);
}

.ariadne-icon {
  background: linear-gradient(145deg, #1a181e, #15131b);
}

.ariadne-icon img {
  width: 100%;
  height: 100%;
}

.modelbench-icon {
  grid-auto-flow: column;
  align-items: end;
  gap: 10px;
  padding: 36px 31px;
  background: linear-gradient(145deg, #1b1828, #13121e);
}

.modelbench-icon .bar {
  width: 18px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #6f8fff, #7d25f5 90%);
  box-shadow: 0 0 13px rgba(95, 70, 255, 0.28);
}

.modelbench-icon .bar-one { height: 30px; }
.modelbench-icon .bar-two { height: 64px; }
.modelbench-icon .bar-three { height: 48px; }

.modrinth-icon {
  background: linear-gradient(145deg, #1a1c17, #11130e);
}

.modrinth-icon img {
  width: 92px;
  height: 92px;
}

.project-copy {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-self: center;
  flex-direction: column;
  justify-content: center;
}

.project-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 16px;
  align-self: center;
  min-height: 0;
}

.project-copy strong {
  display: block;
  color: var(--paper);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.description {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.53;
  letter-spacing: 0;
}

.project-url {
  display: block;
  margin-top: 12px;
  color: var(--purple-bright);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(5px);
}

.project-arrow {
  align-self: start;
  margin-left: 8px;
  width: 28px;
  height: 28px;
  transition: transform 180ms ease;
}

.project-list li:first-child .project-arrow {
  margin-top: 4px;
}

.project-list li:not(:first-child) .project-arrow {
  margin-top: -3px;
}

.project-arrow path {
  fill: none;
  stroke: var(--purple-bright);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.project-card:hover .project-arrow,
.project-card:focus-visible .project-arrow {
  transform: translate(4px, -4px);
}

.bottom-swoosh {
  position: absolute;
  bottom: 17px;
  left: -120px;
  width: 230px;
  height: 126px;
  overflow: visible;
  transform: rotate(-8deg);
}

.bottom-swoosh path {
  fill: none;
  stroke: #5b20b5;
  stroke-linecap: round;
  stroke-width: 10;
}

.bottom-cross {
  right: 378px;
  bottom: 58px;
  width: 26px;
  height: 28px;
}

.bottom-dots {
  position: absolute;
  right: -65px;
  bottom: 1px;
  width: 184px;
  opacity: 0.72;
  transform: rotate(12deg) scaleY(0.59);
  transform-origin: right bottom;
}

@media (min-width: 821px) and (min-height: 640px) and (max-height: 1200px) {
  body {
    overflow: hidden;
  }

  .site-shell {
    min-height: 0;
    height: 100dvh;
    padding: clamp(12px, 2.5vh, 22px) 0;
  }

  .hero {
    min-height: clamp(354px, 52dvh, 400px);
  }

  .hero-copy {
    top: clamp(34px, 7vh, 54px);
    width: 370px;
  }

  .hello {
    font-size: 42px;
  }

  h1 {
    gap: 22px;
    margin-top: 24px;
    font-size: clamp(82px, 9.2vw, 96px);
  }

  .alias {
    margin: 4px 0 0 10px;
    font-size: 48px;
  }

  .alias strong {
    font-size: 1.27em;
    letter-spacing: -6px;
  }

  .title-stroke {
    width: 240px;
    margin: 13px 0 0 10px;
  }

  .hero-art {
    top: 0;
    right: 66px;
    width: clamp(245px, 27vw, 280px);
  }

  .hero-loop-arrow {
    top: 244px;
    left: 314px;
    width: 66px;
  }

  .work {
    top: 0;
  }

  .work-heading {
    gap: 16px;
    margin: 0 0 13px 8px;
  }

  .work-heading h2 {
    font-size: 32px;
  }

  .work-heading h2::after {
    bottom: -6px;
    width: 120px;
    height: 4px;
  }

  .work-heading img {
    width: 36px;
    margin-top: 20px;
  }

  .project-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .project-card {
    grid-template-columns: 1fr;
    grid-template-rows: 48px minmax(0, 1fr);
    gap: 8px;
    height: 190px;
    min-height: 0;
    padding: 14px;
    border-radius: 20px;
  }

  .project-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .modelbench-icon {
    gap: 4px;
    padding: 12px 11px;
  }

  .modelbench-icon .bar { width: 6px; }
  .modelbench-icon .bar-one { height: 12px; }
  .modelbench-icon .bar-two { height: 27px; }
  .modelbench-icon .bar-three { height: 20px; }

  .modrinth-icon img {
    width: 38px;
    height: 38px;
  }

  .project-details,
  .project-copy {
    display: block;
    min-height: 0;
  }

  .project-copy strong {
    font-size: 17px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .description {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.4;
  }

  .project-url {
    margin-top: 7px;
    font-size: 10.5px;
    white-space: nowrap;
    transform: none;
  }

  .project-arrow,
  .project-list li:first-child .project-arrow,
  .project-list li:not(:first-child) .project-arrow {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 20px;
    height: 20px;
    margin: 0;
  }

  .bottom-swoosh,
  .bottom-cross,
  .bottom-dots {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(620px, calc(100% - 32px));
    min-height: 0;
    padding-top: 42px;
  }

  .hero {
    display: grid;
    min-height: 0;
  }

  .hero-copy,
  .hero-art {
    position: relative;
    inset: auto;
  }

  .hero-copy {
    width: 100%;
    margin-left: 0;
  }

  .hero-art {
    width: min(530px, 100%);
    height: auto;
    margin: 18px auto 20px;
  }

  .hero-loop-arrow {
    display: none;
  }

  h1 {
    margin-left: 0;
    margin-top: 22px;
    font-size: clamp(56px, 13vw, 79px);
    letter-spacing: -3px;
    word-spacing: normal;
    gap: 0.12em;
    transform: none;
  }

  .title-prefix,
  .first-name {
    margin-left: 0;
    letter-spacing: inherit;
  }

  .alias {
    margin-top: 13px;
    margin-left: 4px;
    font-size: clamp(45px, 9.7vw, 59px);
    letter-spacing: -2px;
  }

  .alias strong {
    margin-left: 0.14em;
    font-size: 1.2em;
    letter-spacing: -4px;
  }

  .title-stroke {
    margin: 25px 0 0 5px;
  }

  .work-heading {
    margin-top: 7px;
  }

  .bottom-swoosh {
    left: -180px;
  }

  .bottom-cross {
    right: 39%;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 24px, 500px);
    padding-bottom: 135px;
  }

  .hello {
    font-size: 42px;
  }

  h1 {
    margin-left: 0;
    margin-top: 16px;
    font-size: clamp(52px, 15.4vw, 72px);
    letter-spacing: -4px;
    white-space: normal;
  }

  .alias {
    margin-left: 4px;
    font-size: clamp(43px, 11vw, 56px);
    letter-spacing: -3px;
  }

  .title-stroke {
    width: min(320px, 88%);
    margin-left: 5px;
  }

  .hero-art {
    height: auto;
  }

  .work-heading {
    gap: 10px;
    margin: -6px 0 17px 4px;
  }

  .work-heading h2 {
    font-size: 39px;
  }

  .work-heading img {
    width: 73px;
    margin-top: 16px;
  }

  .project-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    height: 142px;
    min-height: 142px;
    padding: 20px 18px 19px 20px;
    border-radius: 21px;
  }

  .project-details {
    grid-template-columns: minmax(0, 1fr) 22px;
    gap: 8px;
  }

  .project-icon {
    width: 88px;
    height: 88px;
    border-radius: 17px;
  }

  .modelbench-icon {
    gap: 6px;
    padding: 21px 19px;
  }

  .modelbench-icon .bar { width: 12px; }
  .modelbench-icon .bar-one { height: 22px; }
  .modelbench-icon .bar-two { height: 43px; }
  .modelbench-icon .bar-three { height: 32px; }

  .modrinth-icon img {
    width: 60px;
    height: 60px;
  }

  .project-copy {
    min-height: 0;
  }

  .project-copy strong {
    font-size: 18px;
    letter-spacing: 0;
  }

  .description {
    margin-top: 7px;
    font-size: 11.8px;
    line-height: 1.45;
  }

  .project-url {
    margin-top: 8px;
    font-size: 12px;
    transform: none;
  }

  .project-arrow {
    margin: 0;
    width: 22px;
    height: 22px;
  }

  .bottom-dots {
    right: -15px;
    width: 190px;
  }
}

@media (max-width: 390px) {
  .project-card {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    padding: 17px;
  }

  .project-icon {
    width: 70px;
    height: 70px;
  }

  .project-details {
    grid-template-columns: minmax(0, 1fr) 19px;
    gap: 5px;
  }

  .project-copy strong {
    font-size: 16px;
  }

  .description {
    font-size: 10.5px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
