/* =====================================================
   ANGRY PASSERBY
   Personal Brand Website v2
===================================================== */

* {
  box-sizing: border-box;
}

:root {
  --bg: #050507;
  --panel: #0b0b10;
  --text: #f4f4f5;
  --muted: #858590;
  --line: rgba(255, 255, 255, 0.11);

  --purple: #9b7cff;
  --cyan: #5ee7ff;
  --pink: #ff67c8;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);

  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  overflow-x: hidden;
}

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


/* =====================================================
   BACKGROUND
===================================================== */

.noise,
.grid-bg,
.cursor-glow {
  position: fixed;
  pointer-events: none;
}


/* Noise */

.noise {
  inset: 0;

  z-index: 20;

  opacity: 0.035;

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


/* Grid */

.grid-bg {
  inset: 0;

  z-index: -3;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    );

  background-size: 70px 70px;

  mask-image:
    linear-gradient(
      to bottom,
      black,
      transparent 80%
    );
}


/* Mouse glow */

.cursor-glow {
  width: 360px;
  height: 360px;

  border-radius: 50%;

  z-index: -1;

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

  background:
    radial-gradient(
      circle,
      rgba(155, 124, 255, 0.11),
      transparent 68%
    );

  filter: blur(5px);
}


/* =====================================================
   HEADER
===================================================== */

.site-header {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 78px;

  padding: 0 5vw;

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

  border-bottom: 1px solid var(--line);

  background: rgba(5, 5, 7, 0.72);

  backdrop-filter: blur(18px);

  z-index: 15;
}


/* Brand */

.brand {
  display: flex;

  align-items: center;

  gap: 12px;

  font-family: "Space Mono", monospace;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1px;
}


.brand-mark {
  display: grid;

  place-items: center;

  width: 32px;
  height: 32px;

  border: 1px solid rgba(155, 124, 255, 0.65);

  box-shadow:
    0 0 20px rgba(155, 124, 255, 0.18);
}


.dot {
  color: var(--purple);
}


/* Navigation */

.nav {
  display: flex;

  gap: 32px;

  font:
    11px "Space Mono",
    monospace;

  letter-spacing: 1px;
}


.nav a {
  color: #777780;

  transition: 0.25s ease;
}


.nav a:hover,
.nav a.active {
  color: white;
}


/* Status */

.header-status {
  font:
    10px "Space Mono",
    monospace;

  letter-spacing: 1px;

  color: #8f8f98;
}


.status-dot {
  display: inline-block;

  width: 6px;
  height: 6px;

  margin-right: 7px;

  border-radius: 50%;

  background: #6effa5;

  box-shadow:
    0 0 12px #6effa5;
}


/* =====================================================
   COMMON
===================================================== */

.section-pad {
  padding-left: 9vw;
  padding-right: 9vw;
}


.kicker,
.section-label,
.eyebrow {
  font:
    10px "Space Mono",
    monospace;

  letter-spacing: 2px;

  color: #777780;
}


.kicker span,
.section-label span {
  color: var(--purple);

  margin-right: 14px;
}


/* =====================================================
   HERO
===================================================== */

.hero {
  min-height: 100vh;

  padding-top: 150px;
  padding-bottom: 100px;

  display: grid;

  grid-template-columns:
    1.25fr 0.75fr;

  align-items: center;

  gap: 40px;

  position: relative;
}


.hero h1 {
  margin: 28px 0 15px;

  font-size:
    clamp(
      72px,
      12vw,
      185px
    );

  line-height: 0.79;

  letter-spacing: -0.09em;

  font-weight: 900;
}


.hero h1 .line {
  display: block;
}


.hero h1 .accent {
  background:
    linear-gradient(
      100deg,
      #ffffff 0%,
      #bdafff 42%,
      #65e8ff 82%,
      #ff67c8 100%
    );

  -webkit-background-clip: text;

  background-clip: text;

  color: transparent;

  filter:
    drop-shadow(
      0 0 30px rgba(155, 124, 255, 0.16)
    );
}


.cursor {
  display: inline-block;

  color: var(--cyan);

  font-weight: 400;

  animation:
    blink 0.8s infinite;
}


@keyframes blink {

  50% {
    opacity: 0;
  }

}


.hero-cn {
  margin: 0;

  font-size: 25px;

  font-weight: 700;
}


.hero-desc {
  margin-top: 14px;

  color: #8e8e98;

  font-size: 16px;

  line-height: 1.9;
}


.hero-desc strong {
  color: #c7c7cf;

  font-weight: 500;
}


/* Buttons */

.hero-actions {
  display: flex;

  align-items: center;

  gap: 28px;

  margin-top: 34px;
}


.btn {
  display: inline-flex;

  align-items: center;

  gap: 22px;

  padding:
    14px 19px;

  font:
    10px "Space Mono",
    monospace;

  letter-spacing: 1px;

  border:
    1px solid var(--line);
}


.btn-main {
  background: white;

  color: #050507;

  border-color: white;

  transition: 0.25s;
}


.btn-main:hover {
  transform: translateY(-3px);

  box-shadow:
    0 12px 40px rgba(255, 255, 255, 0.13);
}


.text-link {
  color: #858590;

  font:
    10px "Space Mono",
    monospace;

  letter-spacing: 1px;
}


.text-link span {
  color: var(--purple);

  margin-left: 8px;
}


/* Hero Right */

.hero-side {
  position: relative;

  min-height: 510px;

  display: grid;

  place-items: center;
}


/* =====================================================
   ORB
===================================================== */

.orb-wrap {
  position: relative;

  width: min(430px, 70vw);

  aspect-ratio: 1;
}


.orb {
  position: absolute;

  inset: 20%;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 28%,
      white 0,
      #b8a9ff 3%,
      transparent 11%
    ),
    radial-gradient(
      circle at 55% 55%,
      rgba(94, 231, 255, 0.75),
      transparent 26%
    ),
    radial-gradient(
      circle at 45% 42%,
      #5b48bd,
      #211a50 45%,
      #07070b 72%
    );

  box-shadow:
    0 0 60px rgba(155, 124, 255, 0.28),
    inset -30px -30px 70px rgba(0, 0, 0, 0.8);

  animation:
    float 6s ease-in-out infinite;
}


@keyframes float {

  50% {
    transform:
      translateY(-13px)
      rotate(3deg);
  }

}


.orb-ring {
  position: absolute;

  inset: 4%;

  border:
    1px solid rgba(155, 124, 255, 0.27);

  border-radius: 50%;

  transform:
    rotate(-18deg)
    scaleY(0.32);
}


.ring-b {
  inset: 12%;

  border-color:
    rgba(94, 231, 255, 0.22);

  transform:
    rotate(58deg)
    scaleY(0.28);
}


.orb-label {
  position: absolute;

  font:
    9px "Space Mono",
    monospace;

  letter-spacing: 2px;

  color: #858590;
}


.label-a {
  top: 8%;
  left: 17%;
}


.label-b {
  right: 4%;
  top: 45%;

  color: var(--cyan);
}


.label-c {
  left: 13%;
  bottom: 14%;

  color: var(--pink);
}


/* =====================================================
   TERMINAL
===================================================== */

.mini-terminal {
  position: absolute;

  right: -2%;
  bottom: 0;

  width: 250px;

  background:
    rgba(7, 7, 10, 0.9);

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

  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.5);
}


.terminal-top {
  height: 27px;

  display: flex;

  align-items: center;

  gap: 5px;

  padding: 0 10px;

  border-bottom:
    1px solid var(--line);

  color: #55555e;

  font:
    7px "Space Mono",
    monospace;
}


.terminal-top span {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #44444d;
}


.terminal-top b {
  margin-left: 8px;

  font-weight: 400;
}


.terminal-body {
  padding: 15px;

  font:
    10px/1.8 "Space Mono",
    monospace;

  color: #888893;
}


.terminal-body p {
  margin: 0;
}


.terminal-body i {
  color: var(--purple);

  font-style: normal;
}


.terminal-output {
  padding-left: 12px;

  color: #bdbdc5;
}


.terminal-output.live {
  color: #6effa5;
}


.blink {
  color: var(--cyan);

  animation:
    blink 0.8s infinite;
}


/* =====================================================
   HERO SCROLL
===================================================== */

.hero-scroll {
  position: absolute;

  bottom: 30px;
  left: 9vw;

  font:
    8px "Space Mono",
    monospace;

  letter-spacing: 2px;

  color: #5e5e67;
}


.hero-scroll span {
  margin-left: 10px;

  color: var(--purple);
}


/* =====================================================
   SECTIONS
===================================================== */

.about,
.projects,
.notes {
  padding-top: 140px;

  padding-bottom: 140px;
}


.section-label {
  padding-bottom: 30px;

  border-bottom:
    1px solid var(--line);
}


/* =====================================================
   ABOUT
===================================================== */

.about-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 10vw;

  padding-top: 65px;
}


.about-title h2 {
  margin: 15px 0 0;

  font-size:
    clamp(
      42px,
      6vw,
      85px
    );

  line-height: 0.94;

  letter-spacing: -0.06em;
}


.about-title em {
  color: #6c6c75;

  font-style: normal;
}


.big-text {
  margin:
    0 0 25px;

  font-size: 30px;

  line-height: 1.35;

  letter-spacing: -0.03em;
}


.about-text > p:not(.big-text) {
  max-width: 570px;

  color: #858590;

  font-size: 15px;
}


/* Stats */

.stats {
  display: flex;

  gap: 50px;

  margin-top: 45px;

  padding-top: 25px;

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


.stats div {
  display: flex;

  flex-direction: column;
}


.stats strong {
  font-size: 28px;
}


.stats span {
  margin-top: 3px;

  color: #666670;

  font:
    8px "Space Mono",
    monospace;

  letter-spacing: 2px;
}


/* =====================================================
   PROJECTS
===================================================== */

.project-list {
  margin-top: 60px;
}


.project-card {
  display: grid;

  grid-template-columns:
    70px 1fr 60px;

  align-items: center;

  min-height: 230px;

  padding: 30px 0;

  border-bottom:
    1px solid var(--line);

  transition:
    0.35s;
}


.project-card:first-child {
  border-top:
    1px solid var(--line);
}


.project-card:hover {
  padding-left: 20px;

  padding-right: 20px;

  background:
    rgba(155, 124, 255, 0.035);
}


.project-no {
  color: #55555e;

  font:
    10px "Space Mono",
    monospace;
}


.project-main p,
.note-type,
.note-date {
  margin: 0 0 12px;

  color: #686871;

  font:
    9px "Space Mono",
    monospace;

  letter-spacing: 2px;
}


.project-main h3 {
  margin: 0;

  font-size:
    clamp(
      35px,
      5vw,
      70px
    );

  line-height: 0.88;

  letter-spacing: -0.06em;
}


.project-main h3 span {
  color: #686872;
}


.project-desc {
  display: block;

  margin-top: 17px;

  color: #777780;

  font-size: 12px;
}


.project-arrow {
  font-size: 30px;

  color: var(--purple);

  transition:
    0.3s;
}


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


/* =====================================================
   NOTES
===================================================== */

.notes-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 18px;

  margin-top: 60px;
}


.note-card {
  min-height: 310px;

  padding: 32px;

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

  background:
    rgba(255, 255, 255, 0.018);

  position: relative;

  transition:
    0.3s;
}


.note-card:hover {
  transform:
    translateY(-7px);

  border-color:
    rgba(155, 124, 255, 0.4);
}


.note-date {
  float: right;
}


.note-card h3 {
  clear: both;

  margin:
    55px 0 14px;

  font-size: 25px;
}


.note-card p {
  max-width: 560px;

  color: #7c7c86;

  font-size: 14px;
}


.note-card a {
  position: absolute;

  left: 32px;

  bottom: 28px;

  color: #c4c4cc;

  font:
    9px "Space Mono",
    monospace;

  letter-spacing: 1px;
}


/* =====================================================
   CONTACT
===================================================== */

.contact {
  min-height: 85vh;

  display: flex;

  align-items: center;

  justify-content: center;

  text-align: center;

  position: relative;

  overflow: hidden;
}


.contact::before {
  content: "";

  position: absolute;

  width: 600px;
  height: 600px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(155, 124, 255, 0.13),
      transparent 67%
    );

  filter: blur(15px);
}


.contact-inner {
  position: relative;
}


.contact h2 {
  margin:
    30px 0 20px;

  font-size:
    clamp(
      75px,
      13vw,
      180px
    );

  line-height: 0.75;

  letter-spacing: -0.09em;
}


.contact h2 span {
  color: #777780;
}


.contact-inner > p:not(.kicker) {
  color: #777780;
}


.contact-links {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 25px;

  margin-top: 35px;

  font:
    9px "Space Mono",
    monospace;

  letter-spacing: 1px;
}


.contact-links a {
  color: #aaaab2;

  transition:
    0.2s;
}


.contact-links a:hover {
  color: white;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding:
    25px 9vw;

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

  color: #55555e;

  font:
    8px "Space Mono",
    monospace;

  letter-spacing: 1px;
}


/* =====================================================
   REVEAL ANIMATION
===================================================== */

.reveal {
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}


html.js .reveal {
  opacity: 0;

  transform:
    translateY(24px);
}


html.js .reveal.visible {
  opacity: 1;

  transform:
    translateY(0);
}


.delay-1 {
  transition-delay:
    0.12s;
}


.delay-2 {
  transition-delay:
    0.24s;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 800px) {

  .site-header {
    height: 68px;

    padding:
      0 6vw;
  }


  .brand-name,
  .header-status {
    display: none;
  }


  .nav {
    gap: 15px;

    font-size: 9px;
  }


  .section-pad {
    padding-left: 7vw;
    padding-right: 7vw;
  }


  .hero {
    padding-top: 125px;

    grid-template-columns:
      1fr;
  }


  .hero h1 {
    font-size:
      21vw;
  }


  .hero-side {
    min-height: 380px;
  }


  .mini-terminal {
    right: 0;
  }


  .hero-scroll {
    left: 7vw;
  }


  .about-grid {
    grid-template-columns:
      1fr;

    gap: 55px;
  }


  .project-card {
    grid-template-columns:
      40px 1fr 30px;

    min-height: 190px;
  }


  .project-main h3 {
    font-size:
      11vw;
  }


  .notes-grid {
    grid-template-columns:
      1fr;
  }


  .contact h2 {
    font-size:
      24vw;
  }


  footer {
    flex-direction:
      column;
  }

}
/* =====================================================
   NOTES ARCHIVE
===================================================== */

.notes-page {
  min-height: 100vh;
  padding:
    170px 9vw 100px;
}


.notes-hero {
  max-width: 1000px;
  padding-bottom: 80px;
}


.notes-hero h1 {
  margin: 25px 0;

  font-size:
    clamp(
      80px,
      15vw,
      190px
    );

  line-height: .8;

  letter-spacing: -.09em;
}


.notes-hero h1 span {
  color: var(--purple);
}


.notes-hero > p:last-child {
  max-width: 600px;

  color: #858590;

  font-size: 17px;
}


.archive {
  border-top:
    1px solid var(--line);
}


.archive-item {
  display: grid;

  grid-template-columns:
    80px 1fr 120px;

  align-items: center;

  gap: 30px;

  min-height: 220px;

  padding: 30px 0;

  border-bottom:
    1px solid var(--line);

  transition:
    .35s ease;
}


.archive-item:hover {
  padding-left: 20px;

  padding-right: 20px;

  background:
    rgba(
      155,
      124,
      255,
      .035
    );
}


.archive-number {
  color: #55555e;

  font:
    11px "Space Mono",
    monospace;
}


.archive-type {
  color: #686871;

  font:
    9px "Space Mono",
    monospace;

  letter-spacing: 2px;
}


.archive-info h2 {
  margin:
    12px 0 8px;

  font-size:
    clamp(
      28px,
      4vw,
      48px
    );

  line-height: 1;

  letter-spacing: -.04em;
}


.archive-info p {
  margin: 0;

  color: #777780;

  font-size: 13px;
}


.archive-date {
  text-align: right;

  color: #666670;

  font:
    9px "Space Mono",
    monospace;

  letter-spacing: 1px;
}


.archive-date span {
  display: inline-block;

  margin-left: 10px;

  color: var(--purple);

  font-size: 20px;

  transition:
    .3s;
}


.archive-item:hover
.archive-date span {
  transform:
    translate(
      5px,
      -5px
    );
}


.back-home {
  margin-top: 50px;
}


.back-home a {
  color: #888892;

  font:
    9px "Space Mono",
    monospace;

  letter-spacing: 1px;
}


.back-home a:hover {
  color: white;
}


@media (max-width: 700px) {

  .notes-page {
    padding:
      130px 7vw 80px;
  }


  .notes-hero h1 {
    font-size: 25vw;
  }


  .archive-item {
    grid-template-columns:
      40px 1fr;

    gap: 15px;

    min-height: 180px;
  }


  .archive-date {
    grid-column: 2;

    text-align: left;
  }


  .archive-info h2 {
    font-size:
      8vw;
  }

}


/* =====================================================
   ACCESSIBILITY
===================================================== */

:where(a, button):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}


@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

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

  .cursor-glow {
    display: none;
  }

}
