@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0e12;
  --panel: #11161d;
  --text: #f2f3f5;
  --muted: #929ba9;
  --line: rgba(255, 255, 255, .11);
  --yellow: #ffe34b;
  --red: #ff3447;
  --orange: #ff902c;
  --display: 'Space Grotesk', sans-serif;
  --body: 'DM Sans', sans-serif
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased
}

::selection {
  background: var(--yellow);
  color: #111
}

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

button {
  font: inherit
}

button,
a {
  -webkit-tap-highlight-color: transparent
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 6px
}

.wrap {
  width: min(1200px, calc(100% - 96px));
  margin: auto
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 14, 18, .86);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line)
}

nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px
}

.brandmark {
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -9px;
  padding-right: 9px;
  font-size: 38px;
  line-height: 1;
  background: linear-gradient(100deg, var(--red) 15%, var(--orange) 52%, var(--yellow) 85%);
  color: transparent;
  background-clip: text
}

.brandname {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .02em
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  color: #aab2bf
}

.navlinks>a:hover {
  color: white
}

.nav-github {
  border: 1px solid var(--line);
  padding: 11px 16px;
  border-radius: 7px;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 9px
}

.gh {
  width: 18px;
  height: 18px;
  fill: currentColor
}

.menu {
  display: none;
  color: white;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 5px
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line)
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  min-height: 690px;
  gap: 10px;
  position: relative;
  z-index: 1
}

.hero-copy {
  padding: 75px 0 95px
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font: 500 10px var(--display);
  color: var(--muted)
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 13px #ffe34b55
}

.eyebrow .dot {
  animation: pulse 3s infinite
}

h1 {
  font: 500 clamp(50px, 5.8vw, 79px)/1.04 var(--display);
  letter-spacing: -.065em;
  margin: 29px 0 25px
}

h1 span {
  background: linear-gradient(100deg, var(--red), var(--orange) 55%, var(--yellow));
  background-clip: text;
  color: transparent
}

.hero-copy>p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 31px
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 21px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--line);
  transition: transform .2s, background .2s, border-color .2s
}

.btn:hover {
  transform: translateY(-3px);
  border-color: #737b88
}

.btn.primary {
  background: var(--yellow);
  color: #121416;
  border-color: var(--yellow)
}

.btn.primary:hover {
  background: #ffeb7b
}

.hero-note {
  margin-top: 25px;
  color: #687383;
  font-size: 10px;
  font-family: var(--display);
  letter-spacing: .02em
}

.hero-note span {
  color: var(--yellow);
  margin-right: 7px
}

.art {
  height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate
}

.art:before {
  content: '';
  position: absolute;
  inset: -60px -140px;
  background: radial-gradient(ellipse, #ff852510, transparent 64%);
  z-index: -1
}

.art-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffffff05 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse, black, transparent 69%)
}

.orbit {
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid #ffffff0d;
  border-radius: 50%;
  transform: rotate(-24deg)
}

.orbit.two {
  width: 440px;
  height: 440px;
  border-style: dashed;
  animation: spin 100s linear infinite
}

.orbit:after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  top: 49px;
  left: 49px;
  box-shadow: 0 0 25px #ff902c
}

.bigmark {
  font: 900 italic clamp(110px, 15vw, 205px) Arial, sans-serif;
  letter-spacing: -.23em;
  padding-right: .23em;
  transform: rotate(-6deg) !important;
  background: linear-gradient(105deg, var(--red) 15%, var(--orange) 48%, var(--yellow) 88%);
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 15px 40px #ff6a1515);
  animation: float 7s ease-in-out infinite
}

.art-label {
  position: absolute;
  background: #11161de8;
  border: 1px solid #ffffff14;
  border-radius: 7px;
  padding: 11px 14px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #bcc4cf;
  font: 10px var(--display);
  box-shadow: 0 12px 40px #0003
}

.art-label svg {
  width: 14px;
  height: 14px;
  color: var(--yellow)
}

.label-one {
  top: 90px;
  left: 10px;
  animation: float 7s ease-in-out infinite reverse
}

.label-two {
  bottom: 93px;
  right: -10px;
  animation: float 8s ease-in-out infinite
}

.label-three {
  bottom: 51px;
  left: 45px;
  font-size: 9px;
  background: transparent;
  box-shadow: none;
  border: none;
  color: #667180
}

.connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #3b424d;
  stroke-width: 1
}

.flow {
  stroke: var(--orange);
  stroke-dasharray: 4 120;
  animation: flow 9s linear infinite
}

.hero-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 0;
  color: #77818e;
  font: 10px var(--display);
  letter-spacing: .1em;
  text-transform: uppercase
}

.hero-bottom .right {
  display: flex;
  gap: 30px
}

.hero-bottom b {
  color: #c9ced7;
  font-weight: 400
}

.section {
  padding: 100px 0
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 39px
}

.kicker {
  font: 11px var(--display);
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--orange);
  margin: 0 0 19px
}

h2 {
  font: 500 clamp(29px, 3.5vw, 43px)/1.15 var(--display);
  letter-spacing: -.05em;
  margin: 0
}

.section-top>p {
  max-width: 300px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0
}

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.project {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(155deg, #141922, #0e1319);
  overflow: hidden;
  transition: transform .3s, border-color .3s
}

.project:hover {
  transform: translateY(-5px);
  border-color: #ffffff30
}

.project-visual {
  height: 250px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(#ffffff12 .8px, transparent .8px);
  background-size: 16px 16px
}

.project-visual:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #10151c, transparent 45%)
}

.visual-label {
  position: absolute;
  top: 19px;
  left: 21px;
  color: #6f7a89;
  font: 9px var(--display);
  letter-spacing: .14em
}

.triage-ui {
  width: 70%;
  background: #141b24;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  padding: 16px;
  transform: perspective(700px) rotateY(-10deg) rotateX(7deg);
  box-shadow: 18px 25px 70px #ff60008f;
  animation: float 9s ease-in-out infinite
}

.ui-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font: 9px var(--display);
  color: #8592a4
}

.tiny-dot {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #596370
}

.ui-bar span:last-child {
  margin-left: 10px
}

.issue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 5px;
  font-size: 9px;
  color: #b6c1ce;
  gap: 8px
}

.issue i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #79b9ec;
  margin-right: 5px;
  display: inline-block
}

.tag {
  color: #ffca60;
  background: #ffca6010;
  padding: 4px 6px;
  border: 1px solid #ffca6020;
  border-radius: 4px;
  font: 8px var(--display);
  white-space: nowrap
}

.issue:nth-child(3) .tag {
  color: #a89dff;
  background: #a89dff10;
  border-color: #a89dff20
}

.issue:nth-child(4) .tag {
  color: #89ceb0;
  background: #89ceb010;
  border-color: #89ceb020
}

.voice-visual {
  background-color: #14151a
}

.wave {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 100px;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  width: 82%;
  justify-content: center
}

.wave i {
  width: 4px;
  border-radius: 6px;
  background: linear-gradient(var(--yellow), var(--orange), var(--red));
  height: var(--height);
  opacity: .8;
  animation: wave 1.6s ease-in-out infinite;
  animation-delay: var(--delay)
}

.voice-chip {
  position: absolute;
  bottom: 40px;
  z-index: 1;
  border: 1px solid #ffffff13;
  background: #151920d9;
  padding: 8px 13px;
  border-radius: 30px;
  font: 9px var(--display);
  color: #929dab;
  display: flex;
  align-items: center;
  gap: 8px
}

.voice-chip .dot {
  width: 4px;
  height: 4px
}

.project-body {
  padding: 28px
}

.project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px
}

.project-heading h3 {
  font: 500 26px var(--display);
  letter-spacing: -.04em;
  margin: 0
}

.pill {
  font: 9px var(--display);
  color: #8d99a9;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 8px
}

.project-body p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  min-height: 47px;
  margin: 16px 0 26px;
  max-width: 365px
}

.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 19px
}

.language {
  font-size: 10px;
  color: #8e99a9;
  display: flex;
  align-items: center;
  gap: 7px
}

.language:before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #519bde
}

.language.js:before {
  background: #f1df4c
}

.repo-link {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  gap: 13px;
  align-items: center
}

.repo-link:hover {
  color: var(--yellow)
}

.about {
  padding: 78px 0 88px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0e1218
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 90px
}

.about-copy p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 370px;
  margin-top: 23px
}

.principles {
  display: grid;
  gap: 25px;
  padding-top: 6px
}

.principle {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 13px
}

.num {
  font: 10px var(--display);
  color: var(--orange);
  padding-top: 4px
}

.principle h3 {
  font: 500 16px var(--display);
  margin: 0 0 8px
}

.principle p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  max-width: 360px
}

.community {
  padding: 100px 0
}

.join-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff16;
  border-radius: 12px;
  background: radial-gradient(ellipse at 90% 100%, #ff962b10, transparent 60%), #11151b;
  padding: 65px;
  text-align: center
}

.join-panel:after {
  content: 'AAA';
  position: absolute;
  font: 900 italic 230px Arial;
  letter-spacing: -45px;
  color: #ffffff02;
  right: 10px;
  bottom: -70px;
  pointer-events: none
}

.join-panel .kicker {
  color: var(--yellow)
}

.join-panel h2 {
  font-size: clamp(32px, 4vw, 49px)
}

.join-panel>p:not(.kicker) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 460px;
  margin: 20px auto 27px
}

.join-panel .actions {
  justify-content: center;
  position: relative;
  z-index: 1
}

.contribute-note {
  font: 10px var(--display);
  color: #727f91;
  margin-top: 23px
}

footer {
  border-top: 1px solid var(--line);
  padding: 27px 0 35px
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 17px
}

.footer-brand .brandmark {
  font-size: 27px;
  letter-spacing: -7px;
  padding-right: 7px
}

.footer-brand span {
  font-size: 10px;
  color: #6e7988
}

.footer-links {
  display: flex;
  gap: 23px;
  font-size: 10px;
  color: #929dab
}

.footer-links a:hover {
  color: white
}

.reveal {
  opacity: 1;
  transform: none
}

.js-motion .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s, transform .8s
}

.js-motion .reveal.visible {
  opacity: 1;
  transform: none
}

@keyframes float {

  0%,
  100% {
    translate: 0 0;
    transform: perspective(700px) translateY(0px) rotateY(-10deg) rotateX(7deg);
  }

  50% {
    translate: 0 -12px;
    transform: perspective(750px) translateY(-2px) rotateY(-6deg) rotateX(10deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(336deg)
  }
}

@keyframes flow {
  to {
    stroke-dashoffset: -496
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px #ffe34b0b
  }
}

@keyframes wave {

  0%,
  100% {
    transform: scaleY(.45)
  }

  50% {
    transform: scaleY(1)
  }
}

@media(min-width:1450px) {
  .hero-grid {
    min-height: 760px
  }
}

@media(max-width:1000px) {
  .wrap {
    width: calc(100% - 56px)
  }

  .hero-grid {
    grid-template-columns: 1.1fr .9fr;
    min-height: 630px
  }

  .art {
    transform: scale(.8);
    margin-right: -40px
  }

  .label-two {
    right: -40px
  }

  .hero-copy {
    padding: 70px 0
  }

  h1 {
    font-size: 60px
  }

  .navlinks {
    gap: 20px
  }

  .about-layout {
    gap: 45px
  }
}

@media(max-width:720px) {
  .wrap {
    width: calc(100% - 40px)
  }

  nav {
    height: 74px
  }

  .brandname {
    font-size: 10px
  }

  .brandmark {
    font-size: 33px
  }

  .menu {
    display: block
  }

  .navlinks {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    padding: 24px;
    background: #10151d;
    border-bottom: 1px solid var(--line);
    align-items: stretch;
    flex-direction: column;
    gap: 22px
  }

  .navlinks.open {
    display: flex
  }

  .nav-github {
    justify-content: center
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    align-items: stretch
  }

  .hero-copy {
    padding: 58px 0 0;
    z-index: 2
  }

  h1 {
    font-size: clamp(49px, 10vw, 68px);
    max-width: 550px;
    margin-top: 24px
  }

  .hero-copy>p {
    font-size: 14px;
    max-width: 350px
  }

  .art {
    height: 330px;
    transform: scale(.78);
    margin: -18px -15px -6px
  }

  .bigmark {
    font-size: 185px
  }

  .label-one {
    top: 15px;
    left: 10%
  }

  .label-two {
    bottom: 30px;
    right: 5%
  }

  .label-three {
    bottom: -10px;
    left: 15%
  }

  .hero-bottom {
    font-size: 8px;
    gap: 15px;
    padding: 20px 0
  }

  .hero-bottom .right {
    gap: 14px
  }

  .hero-bottom .right span:last-child {
    display: none
  }

  .section {
    padding: 65px 0
  }

  .section-top {
    display: block;
    margin-bottom: 28px
  }

  .section-top>p {
    margin-top: 20px;
    max-width: 330px
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .project-visual {
    height: 235px
  }

  .project-body {
    padding: 25px
  }

  .about {
    padding: 60px 0
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .about-copy p {
    max-width: 100%
  }

  .principles {
    gap: 25px
  }

  .community {
    padding: 60px 0
  }

  .join-panel {
    padding: 43px 22px
  }

  .join-panel .btn {
    padding: 14px 16px;
    font-size: 11px
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px
  }

  .footer-links {
    width: 100%;
    justify-content: space-between
  }

  .footer-brand span {
    font-size: 9px
  }
}

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

  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important
  }

  .js-motion .reveal {
    opacity: 1;
    transform: none
  }
}

.repo_hl {
  padding-left: 2rem;
  background-color: #ff912cb0;
  padding-top: 2rem;
  border-radius: .7rem;
}

.repo_hl_bg1 {
  background-color: #ff4f3f;
}

.repo_hl_bg2 {
  background-color: #ff912cb0;
}

.scramble-text {
  /* font-family: monospace; Monospace prevents width jitter while letters change */
  /* font-size: 2.5rem; */
  font-weight: bold;
  /* color: #ffffff; */
  text-shadow: 0 0 15px #ff620069;
  /* Matches your existing orange glow */
  cursor: pointer;
}

.aaa-wrapper {
  /* display: inline-block; */
  /* position: relative; */
  /* Creates a clean stacking context so z-index: -1 stays behind the text, not behind your page */
  /* isolation: isolate;  */
}

.aaa-glitch {
  /* position: relative; */
  /* font-family: system-ui, -apple-system, sans-serif; */
  /* font-size: 5rem; */
  /* font-weight: 900; */
  /* letter-spacing: 0.12em; */
  /* color: #ffffff; */
  margin: 0;
  text-shadow: 0 0 25px #ff620025;
  user-select: none;
}

.aaa-glitch::before,
.aaa-glitch::after {
  content: attr(data-text);
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent;
  /* Blends colors like glowing light instead of harsh solid blocks */
  mix-blend-mode: screen;
}

/* Layer 1: Soft Glowing Orange Shift */
.aaa-glitch::before {
  color: #ff6000;
  z-index: -1;
  filter: blur(0.6px);
  text-shadow: 0 0 12px #ff6000;
  animation: aaa-glitch-orange 3s infinite ease-in-out alternate-reverse;
}

/* Layer 2: Soft Cyan Contrast Shift */
.aaa-glitch::after {
  color: #00f0ff;
  z-index: -2;
  filter: blur(0.6px);
  text-shadow: 0 0 12px #00f0ff;
  animation: aaa-glitch-cyan 3.5s infinite ease-in-out alternate-reverse;
}

/* Smooth horizontal offset without harsh black slicing bars */
@keyframes aaa-glitch-orange {

  0%,
  82%,
  100% {
    transform: translate(0, 0) skewX(0deg);
    opacity: 0.7;
  }

  85% {
    transform: translate(-5px, 1px) skewX(-8deg);
    opacity: 1;
  }

  88% {
    transform: translate(4px, -1px) skewX(6deg);
    opacity: 0.9;
  }

  92% {
    transform: translate(-2px, 0) skewX(-3deg);
    opacity: 1;
  }
}

@keyframes aaa-glitch-cyan {

  0%,
  84%,
  100% {
    transform: translate(0, 0) skewX(0deg);
    opacity: 0.7;
  }

  86% {
    transform: translate(5px, -1px) skewX(8deg);
    opacity: 1;
  }

  90% {
    transform: translate(-4px, 1px) skewX(-6deg);
    opacity: 0.9;
  }

  94% {
    transform: translate(2px, 0) skewX(3deg);
    opacity: 1;
  }
}
