@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #030207;
  --ink: #f7f1ff;
  --soft: rgba(247, 241, 255, .72);
  --muted: rgba(247, 241, 255, .42);
  --purple: #a855f7;
  --purple-2: #d946ef;
  --glass: rgba(11, 8, 18, .34);
  --glass-strong: rgba(16, 10, 26, .58);
  --line: rgba(168, 85, 247, .13);
  --line-strong: rgba(168, 85, 247, .28);
  --font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Archivo Black", "Arial Black", Impact, var(--font);
  --mono: "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(circle at 14% 18%, rgba(168, 85, 247, .24), transparent 30rem),
    radial-gradient(circle at 82% 14%, rgba(217, 70, 239, .18), transparent 28rem),
    radial-gradient(circle at 50% 102%, rgba(124, 58, 237, .18), transparent 34rem),
    linear-gradient(180deg, #040207 0%, #08040e 42%, #030207 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: .16;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .18;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.14) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,.1) 0 1px, transparent 1px);
  background-size: 9px 9px, 13px 13px;
  mix-blend-mode: soft-light;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .13;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.08) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, transparent, rgba(168,85,247,.12), transparent);
  background-size: auto, 100% 260px;
  animation: scanMove 7s linear infinite;
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 48% 34%, rgba(168,85,247,.2), transparent 30rem),
    rgba(3, 2, 7, .94);
  backdrop-filter: blur(18px);
  transition: opacity .55s ease, visibility .55s ease;
}

.entry-gate.is-done {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.entry-gate button {
  position: relative;
  border: 0;
  color: rgba(247,241,255,.76);
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .52em;
  text-transform: uppercase;
  cursor: pointer;
}

.entry-gate button::before,
.entry-gate button::after {
  position: absolute;
  top: 50%;
  width: 72px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(168,85,247,.7));
}

.entry-gate button::before {
  right: calc(100% + 18px);
}

.entry-gate button::after {
  left: calc(100% + 12px);
  transform: rotate(180deg);
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50px, -50px, 0) translate(-50%, -50%);
  transition: opacity .18s ease, width .18s ease, height .18s ease, border-color .18s ease, background .18s ease;
  will-change: transform;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 22px rgba(168,85,247,.85);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(168,85,247,.48);
  border-radius: 50%;
  background: rgba(168,85,247,.05);
}

html.cursor-enabled,
html.cursor-enabled * {
  cursor: none !important;
}

html.cursor-ready .cursor-dot,
html.cursor-ready .cursor-ring {
  opacity: 1;
}

html.cursor-hover .cursor-ring {
  width: 54px;
  height: 54px;
  border-color: rgba(247,241,255,.68);
  background: rgba(168,85,247,.11);
}

.page-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 30px;
}

.now-playing {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  width: min(320px, calc(100% - 32px));
  padding: 8px 10px;
  border: 1px solid rgba(168,85,247,.16);
  border-radius: 999px;
  background: rgba(8, 5, 13, .34);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
  transform: translateX(-50%);
}

.cover-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(247,241,255,.1);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(247,241,255,.62), transparent 18%),
    radial-gradient(circle at 62% 64%, rgba(168,85,247,.9), transparent 34%),
    #12091d;
}

.track-copy {
  min-width: 0;
}

.track-copy span {
  display: block;
  color: var(--purple);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.track-copy strong {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-audio,
.now-playing audio {
  display: none;
}

.now-playing button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(168,85,247,.16);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  cursor: pointer;
}

.now-playing .music-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  color: rgba(247,241,255,.9);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.music-toggle:hover {
  border-color: rgba(168,85,247,.42);
  box-shadow: 0 0 28px rgba(168,85,247,.24);
}

.music-toggle:disabled {
  cursor: default;
  opacity: .52;
}

.play-glyph {
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(247,241,255,.86);
  filter: drop-shadow(0 0 8px rgba(168,85,247,.65));
}

.now-playing.is-playing .cover-dot {
  border-color: rgba(168,85,247,.46);
  box-shadow: 0 0 30px rgba(168,85,247,.34);
}

.now-playing.is-playing .play-glyph {
  display: grid;
  grid-template-columns: 3px 3px;
  gap: 3px;
  width: 9px;
  height: 12px;
  margin-left: 0;
  border: 0;
}

.now-playing.is-playing .play-glyph::before,
.now-playing.is-playing .play-glyph::after {
  content: "";
  border-radius: 1px;
  background: rgba(247,241,255,.86);
  box-shadow: 0 0 8px rgba(168,85,247,.72);
}

.now-playing.is-audio-error .track-copy span {
  color: #fb7185;
}

.identity {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: end;
  padding: 160px 0 80px;
}

.handle {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
}

h1 {
  align-self: flex-start;
  display: inline-flex;
  align-items: flex-end;
  gap: .05em;
  max-width: 100%;
  margin: 0;
  color: rgba(247,241,255,.94);
  font-family: var(--display);
  font-size: clamp(4.7rem, 15.8vw, 10.2rem);
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.08em;
  text-transform: lowercase;
  text-shadow: 0 0 44px rgba(168,85,247,.18);
}

.typed-name {
  display: inline-block;
  white-space: nowrap;
}

.typing-caret {
  display: block;
  align-self: flex-end;
  flex: 0 0 auto;
  width: .60em;
  height: .110em;
  border-radius: .03em;
  background: linear-gradient(90deg, var(--purple), var(--purple-2));
  box-shadow: 0 0 24px rgba(168,85,247,.55);
  animation: typingCaret 1.05s steps(1, end) infinite;
  transform: translate(12px, -5px);
}

.intro {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: clamp(1.12rem, 2.3vw, 1.6rem);
  line-height: 1.55;
}

.stack-line {
  margin: 28px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.social-row a {
  min-width: 66px;
  padding: 9px 14px;
  border: 1px solid rgba(168,85,247,.12);
  border-radius: 999px;
  background: rgba(8,5,13,.24);
  color: var(--soft);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.social-row a:hover {
  border-color: rgba(168,85,247,.36);
  background: rgba(168,85,247,.12);
  color: var(--ink);
}

.section-band {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}

.section-band.is-visible,
.identity {
  opacity: 1;
  transform: translateY(0);
}

.content-section {
  padding: 26px 0;
  scroll-margin-top: 84px;
}

.section-title {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.section-title span {
  color: var(--purple);
  font-family: var(--mono);
  font-size: 12px;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1;
  text-transform: lowercase;
}

.project-grid {
  display: grid;
  gap: 16px;
}

.project-card,
.note-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 18px 70px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}

.project-card {
  display: grid;
  min-height: 310px;
  padding: 28px;
  color: var(--ink);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168,85,247,.34);
  background: rgba(20, 11, 31, .48);
}

.project-card-featured {
  min-height: 390px;
}

.card-kicker {
  color: var(--purple);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: .95;
  letter-spacing: -.06em;
}

.project-card p,
.note-card p {
  max-width: 610px;
  margin: 0;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
  margin-top: 34px;
}

.tag-row span {
  padding: 7px 10px;
  border: 1px solid rgba(168,85,247,.12);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
}

.project-card strong {
  margin-top: 22px;
  color: var(--purple);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.note-card {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.stack-diagram {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, .46fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(11, 8, 18, .24);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.stack-diagram::before {
  position: absolute;
  inset: 50% 18px auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(168,85,247,.55), transparent);
  opacity: .58;
}

.stack-node {
  position: relative;
  z-index: 1;
  min-height: 60px;
  padding: 13px 14px;
  border: 1px solid rgba(168,85,247,.16);
  border-radius: 18px;
  background: rgba(5,3,10,.52);
}

.stack-node::before {
  position: absolute;
  top: 50%;
  left: -7px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 20px rgba(168,85,247,.8);
  transform: translateY(-50%);
}

.stack-node-main {
  min-height: 92px;
  display: grid;
  align-content: center;
  border-color: rgba(168,85,247,.28);
  background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(5,3,10,.5));
}

.stack-node-main::before {
  left: auto;
  right: -7px;
}

.stack-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stack-node span {
  display: block;
  margin-bottom: 5px;
  color: var(--purple);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.stack-node strong {
  display: block;
  color: var(--soft);
  font-size: .9rem;
  line-height: 1.35;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  padding: 34px 0 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: lowercase;
  scroll-margin-top: 84px;
}

.site-footer a {
  color: var(--soft);
}

.site-footer a:hover {
  color: var(--purple);
}

.palette {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3,2,7,.78);
  backdrop-filter: blur(18px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.palette.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.palette-dialog {
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--glass-strong);
  box-shadow: 0 24px 90px rgba(0,0,0,.4);
  transform: translateY(12px) scale(.98);
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}

.palette.is-open .palette-dialog {
  transform: translateY(0) scale(1);
}

.palette-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.palette-head h2 {
  font-size: 1rem;
}

.palette-head button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.palette-dialog a {
  display: block;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: var(--soft);
}

.palette-dialog a:hover {
  color: var(--ink);
  background: rgba(168,85,247,.1);
}

@media (min-width: 900px) {
  .page-shell {
    width: min(1120px, calc(100% - 44px));
  }

  .identity {
    max-width: 760px;
  }

  .project-grid {
    grid-template-columns: 1.15fr .85fr;
    align-items: stretch;
  }

  .project-card-featured {
    grid-row: span 2;
  }

  .note-card {
    grid-template-columns: 1fr 1fr;
  }

  .stack-diagram {
    grid-template-columns: minmax(150px, .38fr) minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 32px, 620px);
  }

  .now-playing {
    top: 12px;
  }

  .identity {
    padding: 132px 0 58px;
  }

  h1 {
    font-size: clamp(4.2rem, 20vw, 6.4rem);
  }

  .intro {
    font-size: 1.06rem;
  }

  .project-card {
    min-height: 280px;
    padding: 22px;
  }

  .project-card-featured {
    min-height: 360px;
  }

  .stack-diagram,
  .stack-branches {
    grid-template-columns: 1fr;
  }

  .stack-diagram {
    gap: 8px;
  }

  .stack-diagram::before {
    inset: 18px 50% 18px auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(168,85,247,.55), transparent);
  }

  .stack-node-main {
    min-height: 92px;
  }

  .stack-node-main::before,
  .stack-node::before {
    top: auto;
    bottom: -6px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@keyframes scanMove {
  from { background-position: 0 0, 0 -260px; }
  to { background-position: 0 0, 0 100vh; }
}

@keyframes typingCaret {
  0%, 46% {
    opacity: 1;
  }

  47%, 76% {
    opacity: .16;
  }

  77%, 100% {
    opacity: 1;
  }
}



.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 94px;
}

.social-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
  opacity: .92;
  filter: drop-shadow(0 0 8px rgba(168,85,247,.34));
}

.social-row a span {
  display: inline-block;
  line-height: 1;
}

@media (max-width: 620px) {
  .social-row a {
    min-width: 0;
    flex: 1 1 auto;
  }
}




.cover-dot {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background-image: var(--cover-image) !important;
  background-position: center !important;
  background-size: cover !important;
  transform: none;
}

.cover-dot::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(168,85,247,.08));
  pointer-events: none;
}

.cover-dot::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: rgba(247,241,255,.82);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(168,85,247,.75);
  pointer-events: none;
}

.now-playing.is-playing .cover-dot {
  animation: coverSpin 8s linear infinite;
}

.now-playing.is-playing .play-glyph {
  opacity: 0;
}

.play-glyph {
  position: relative;
  z-index: 2;
}

@keyframes coverSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}



.audio-visualizer {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(168,85,247,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}

.audio-visualizer span {
  width: 2px;
  height: 7px;
  border-radius: 999px;
  background: rgba(247,241,255,.62);
  box-shadow: 0 0 8px rgba(168,85,247,.5);
  transform-origin: center bottom;
  opacity: .7;
}

.now-playing.is-playing .audio-visualizer span {
  animation: visualizerPulse .72s ease-in-out infinite;
}

.now-playing.is-playing .audio-visualizer span:nth-child(2) {
  animation-delay: .11s;
}

.now-playing.is-playing .audio-visualizer span:nth-child(3) {
  animation-delay: .22s;
}

.now-playing.is-playing .audio-visualizer span:nth-child(4) {
  animation-delay: .33s;
}

@keyframes visualizerPulse {
  0%, 100% {
    height: 6px;
    opacity: .45;
  }

  50% {
    height: 16px;
    opacity: 1;
  }
}


.music-toggle {
  cursor: default;
}
