* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: oklch(10% .025 275);
  color: oklch(95% .012 270);
  font: 16px/1.5 Manrope, system-ui, sans-serif;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.shell {
  width: min(calc(100% - 64px), 1200px);
  margin: auto;
}
.cursor-dot, .cursor-ring {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.cursor-dot {
  width: 5px;
  height: 5px;
  background: oklch(82% .12 282);
  box-shadow: 0 0 16px 5px oklch(70% .18 282);
}
.cursor-ring {
  width: 24px;
  height: 24px;
  border: 1px solid oklch(82% .12 282);
}
.header {
  position: fixed;
  z-index: 10;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 48px), 1260px);
  height: 58px;
  padding: 0 14px 0 18px;
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid oklch(35% .03 275 / .7);
  border-radius: 999px;
  background: oklch(11% .025 275 / .82);
  backdrop-filter: blur(18px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.05em;
  margin-right: auto;
}
.logo span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid oklch(70% .18 282);
  border-radius: 50%;
  color: oklch(82% .12 282);
  font-size: 13px;
}
.header nav {
  display: flex;
  gap: 25px;
  color: oklch(65% .025 275);
  font-size: 13px;
}
.header nav a:hover {
  color: oklch(95% .012 270);
}
.top-contact, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s;
}
.top-contact {
  background: oklch(95% .012 270);
  color: oklch(10% .025 275);
}
.top-contact:hover, .button:hover {
  transform: translateY(-2px);
}
.menu {
  display: none;
  background: transparent;
  border: 0;
}
.menu i {
  display: block;
  width: 20px;
  height: 1px;
  background: oklch(95% .012 270);
  margin: 5px;
}
.hero {
  min-height: 100vh;
  padding-top: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.eyebrow {
  margin: 0 0 25px;
  color: oklch(65% .025 275);
  font: 11px/1.2 'DM Mono', monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow b {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: oklch(80% .16 130);
  box-shadow: 0 0 12px oklch(80% .16 130);
}
h1, h2 {
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .98;
  text-wrap: balance;
}
h1 {
  font-size: clamp(4rem, 8vw, 8.5rem);
  margin: 0;
}
h2 {
  font-size: clamp(3rem, 6vw, 6.2rem);
}
h1 em, h2 em {
  font-style: normal;
  color: oklch(70% .18 282);
}
.lead {
  max-width: 42ch;
  margin: 34px 0 0;
  color: oklch(65% .025 275);
  font-size: 18px;
  line-height: 1.6;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}
.button.light {
  background: oklch(95% .012 270);
  color: oklch(10% .025 275);
}
.button.dark {
  border: 1px solid oklch(30% .035 275);
}
.button.dark b {
  color: oklch(70% .18 282);
  font-size: 10px;
  margin-left: 5px;
}
.meta {
  display: flex;
  gap: 20px;
  margin-top: 80px;
  color: oklch(48% .02 275);
  font: 11px 'DM Mono', monospace;
  letter-spacing: .12em;
}
.meta span {
  color: oklch(70% .18 282);
}
.orbit-stage {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
}
.glow {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: oklch(54% .22 282 / .16);
  filter: blur(72px);
}
.orbit {
  position: absolute;
  border: 1px solid oklch(65% .07 282 / .3);
  border-radius: 50%;
  animation: spin 22s linear infinite;
}
.orbit-a {
  width: min(100%, 620px);
  aspect-ratio: 1;
}
.orbit-b {
  width: min(82%, 500px);
  aspect-ratio: 1;
  animation-duration: 29s;
  animation-direction: reverse;
}
.orbit-c {
  width: min(61%, 370px);
  aspect-ratio: 1;
  animation-duration: 18s;
}
.core {
  z-index: 2;
  width: 150px;
  height: 150px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  border-radius: 50%;
  background: oklch(17% .055 282);
  border: 1px solid oklch(70% .13 282 / .65);
  box-shadow: 0 0 75px oklch(65% .18 282 / .35);
  font: 10px 'DM Mono', monospace;
  color: oklch(65% .025 275);
}
.core strong {
  font: 800 34px Manrope;
  color: oklch(82% .12 282);
}
.tech {
  position: absolute;
  z-index: 3;
  width: 82px;
  height: 82px;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  border: 1px solid oklch(30% .035 275);
  border-radius: 50%;
  background: oklch(14% .035 275);
  color: oklch(65% .025 275);
  transition: transform .25s, border-color .25s;
  animation: float 4s ease-in-out infinite;
}
.tech:hover {
  transform: scale(1.12);
  border-color: oklch(70% .18 282);
  color: oklch(95% .012 270);
}
.tech img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin: auto;
  filter: drop-shadow(0 0 8px oklch(70% .18 282 / .28));
}
.tech small {
  font-size: 9px;
}
.html {
  top: 12%;
  right: 17%;
  animation-delay: -.6s;
}
.css {
  top: 29%;
  right: 2%;
  animation-delay: -1.4s;
}
.js {
  bottom: 16%;
  right: 10%;
  animation-delay: -2s;
}
.react {
  bottom: 2%;
  left: 38%;
  animation-delay: -2.8s;
}
.ts {
  top: 8%;
  left: 22%;
  animation-delay: -3.4s;
}
.git {
  bottom: 27%;
  left: 5%;
  animation-delay: -1.9s;
}
.section {
  padding-block: clamp(96px, 13vw, 180px);
}
.two-col, .heading {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: start;
}
.copy, .side-copy {
  max-width: 45ch;
  color: oklch(65% .025 275);
  font-size: 18px;
  line-height: 1.7;
}
.copy p+p {
  margin-top: 24px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 90px;
  border-top: 1px solid oklch(30% .035 275);
}
.stats div {
  padding: 24px 0;
  border-bottom: 1px solid oklch(30% .035 275);
}
.stats div+div {
  padding-left: 26px;
  border-left: 1px solid oklch(30% .035 275);
}
.stats strong {
  display: block;
  font-size: 44px;
}
.stats span {
  font: 11px 'DM Mono', monospace;
  color: oklch(65% .025 275);
  text-transform: uppercase;
}
.heading {
  align-items: end;
  margin-bottom: 66px;
}
.side-copy {
  font-size: 16px;
}
.skills {
  border-top: 1px solid oklch(30% .035 275);
}
.skills>div {
  display: grid;
  grid-template-columns: 60px 1.2fr 1fr .45fr;
  align-items: center;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid oklch(30% .035 275);
}
.skills span, .skills i {
  font: 11px 'DM Mono', monospace;
  color: oklch(48% .02 275);
}
.skills h3 {
  margin: 0;
  font-size: 28px;
}
.skills p {
  margin: 0;
  color: oklch(65% .025 275);
  font-size: 14px;
}
.skills i {
  text-align: right;
  text-transform: uppercase;
  font-style: normal;
}
.projects {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.project {
  display: block;
}
.visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.3/1;
  border: 1px solid oklch(30% .035 275);
  border-radius: 12px;
  background: oklch(14% .035 275);
}
.visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.75);
  transition: transform .8s, filter .5s;
}
.project:hover img {
  transform: scale(1.06);
  filter: saturate(1);
}
.visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, oklch(7% .03 275 / .7));
}
.visual span, .visual b {
  position: absolute;
  z-index: 1;
  top: 17px;
  font: 11px 'DM Mono', monospace;
}
.visual span {
  left: 18px;
}
.visual b {
  right: 18px;
  font-size: 22px;
}
.project-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
}
.project-row small {
  font: 10px 'DM Mono', monospace;
  color: oklch(65% .025 275);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.project-row h3 {
  margin: 7px 0 0;
  font-size: 27px;
}
.project-row h3 em {
  font: 400 13px 'DM Mono', monospace;
  color: oklch(65% .025 275);
}
.project-row time {
  font: 11px 'DM Mono', monospace;
  color: oklch(48% .02 275);
}
.contact {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact>a {
  display: flex;
  justify-content: space-between;
  max-width: 690px;
  margin-top: 70px;
  padding-bottom: 18px;
  border-bottom: 1px solid oklch(30% .035 275);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}
.contact>a b {
  color: oklch(70% .18 282);
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
  border-top: 1px solid oklch(30% .035 275);
  color: oklch(48% .02 275);
  font: 11px 'DM Mono', monospace;
  text-transform: uppercase;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s, transform .8s;
}
.reveal.show {
  opacity: 1;
  transform: none;
}
.delay {
  transition-delay: .12s;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes float {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}
@media(max-width:900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .orbit-stage {
    min-height: 540px;
  }
  .two-col, .heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .projects {
    grid-template-columns: 1fr;
  }
}
@media(max-width:768px) {
  .shell {
    width: calc(100% - 32px);
  }
  .header {
    top: 12px;
    width: calc(100% - 24px);
    height: 52px;
  }
  .header nav, .top-contact {
    display: none;
  }
  .menu {
    display: block;
  }
  .hero {
    padding-top: 90px;
  }
  .lead {
    font-size: 16px;
  }
  .meta {
    margin-top: 56px;
    flex-wrap: wrap;
  }
  .orbit-stage {
    min-height: 390px;
  }
  .glow {
    width: 250px;
    height: 250px;
  }
  .core {
    width: 110px;
    height: 110px;
  }
  .tech {
    width: 58px;
    height: 58px;
  }
  .tech img {
    width: 22px;
    height: 22px;
  }
  .html {
    top: 13%;
    right: 10%;
  }
  .css {
    top: 29%;
    right: 0;
  }
  .js {
    bottom: 10%;
    right: 6%;
  }
  .react {
    bottom: 0;
    left: 35%;
  }
  .ts {
    top: 5%;
    left: 12%;
  }
  .git {
    bottom: 23%;
    left: 0;
  }
  h1 {
    font-size: clamp(3.4rem, 17vw, 5.4rem);
  }
  h2 {
    font-size: clamp(2.8rem, 14vw, 4.3rem);
  }
  .section {
    padding-block: 90px;
  }
  .stats {
    grid-template-columns: 1fr;
    margin-top: 60px;
  }
  .stats div {
    display: flex;
    justify-content: space-between;
  }
  .stats div+div {
    padding-left: 0;
    border-left: 0;
  }
  .skills>div {
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
  }
  .skills p {
    display: none;
  }
  .skills h3 {
    font-size: 22px;
  }
  .skills i {
    font-size: 9px;
  }
  .project-row h3 {
    font-size: 23px;
  }
  .project-row h3 em {
    display: block;
    margin-top: 5px;
  }
  .footer {
    flex-wrap: wrap;
    line-height: 1.7;
  }
  .footer span:nth-child(2) {
    order: 3;
    width: 100%;
  }
  .header nav.open {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid oklch(35% .03 275 / .7);
    border-radius: 18px;
    background: oklch(11% .025 275 / .96);
    backdrop-filter: blur(18px);
  }

  .header nav.open a {
    padding: 14px 12px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  .orbit {
    animation: none;
  }
  .tech {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px; 
}
body {
  overflow-x: clip;
}
h1, h2, h3 {
  overflow-wrap: break-word;
}
a, button {
  -webkit-tap-highlight-color: transparent;
}
.hero {
  min-height: 100svh; 
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring {
    display: none;
  }
  .tech:hover {
    transform: none;
    border-color: oklch(30% .035 275);
    color: oklch(65% .025 275);
  }
  .project:hover img {
    transform: none;
    filter: saturate(.75);
  }
  .top-contact:hover, .button:hover {
    transform: none;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .hero {
    padding-top: 96px;
  }
  h1 {
    font-size: clamp(4rem, min(8vw, 14vh), 8.5rem);
  }
  .lead {
    margin-top: 26px;
  }
  .actions {
    margin-top: 28px;
  }
  .meta {
    margin-top: 48px;
  }
  .orbit-stage {
    min-height: min(650px, calc(100vh - 110px));
  }
  .orbit-a {
    width: min(100%, 620px, calc(100vh - 130px));
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .header nav {
    gap: 20px;
  }
  .two-col, .heading {
    gap: 48px;
  }
  .skills>div {
    grid-template-columns: 48px 1fr 1fr .5fr;
  }
  .stats strong {
    font-size: 40px;
  }
}

@media (max-width: 1100px) {
  .orbit-stage {
    min-height: 0;
    width: 100%;
    max-width: 620px;
    aspect-ratio: 1 / 1.05;
    justify-self: center;
  }
  .header {
    left: 0;
    right: 0;
    margin-inline: auto;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 128px;
    padding-bottom: 32px;
    row-gap: 40px;
    align-content: center;
  }
  .orbit-stage {
    max-width: 560px;
  }
  .projects {
    gap: 40px;
  }
  .heading {
    margin-bottom: 48px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 108px;
    row-gap: 24px;
  }
  .orbit-stage {
    max-width: 440px;
  }
  .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
    cursor: pointer;
  }
  .menu i {
    margin: 0;
  }
  .header nav.open {
    max-height: calc(100svh - 90px);
    overflow-y: auto;
  }
  .actions {
    flex-wrap: wrap;
  }
  .copy, .side-copy {
    font-size: 16px;
  }
  .stats strong {
    font-size: 36px;
  }
  .contact {
    min-height: auto;
  }
  .contact>a {
    margin-top: 44px;
    gap: 16px;
  }
  .project-row {
    padding-top: 14px;
  }
  .visual span {
    left: 14px;
  }
  .visual b {
    right: 14px;
  }
}

@media (max-width: 420px) {
  .shell {
    width: calc(100% - 28px);
  }
  h1 {
    font-size: clamp(2.9rem, 15.5vw, 4.4rem);
  }
  h2 {
    font-size: clamp(2.4rem, 12.5vw, 3.6rem);
  }
  .eyebrow {
    letter-spacing: .12em;
  }
  .lead {
    margin-top: 24px;
  }
  .actions {
    gap: 10px;
    margin-top: 28px;
  }
  .button {
    padding: 0 16px;
  }
  .meta {
    gap: 8px 14px;
    margin-top: 40px;
    letter-spacing: .08em;
  }
  .glow {
    width: 200px;
    height: 200px;
  }
  .core {
    width: 96px;
    height: 96px;
    gap: 4px;
    font-size: 9px;
  }
  .tech {
    width: 52px;
    height: 52px;
    gap: 2px;
  }
  .tech img {
    width: 20px;
    height: 20px;
  }
  .tech small {
    font-size: 8px;
  }
  .section {
    padding-block: 72px;
  }
  .stats {
    margin-top: 44px;
  }
  .stats div {
    padding: 18px 0;
    align-items: baseline;
  }
  .skills>div {
    padding: 20px 0;
  }
  .skills h3 {
    font-size: 20px;
  }
  .project-row h3 {
    font-size: 21px;
  }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 96px;
  }
  .orbit-stage {
    max-width: 380px;
  }
  .header nav.open {
    max-height: calc(100vh - 80px);
  }
}

.hero-copy,
.orbit-stage,
.two-col > *,
.heading > *,
.projects,
.project,
.project-row,
.contact,
.footer {
  min-width: 0;
}

img {
  max-width: 100%;
}

@media (max-width: 900px) {
  .header {
    width: calc(100% - 24px);
    max-width: calc(100vw - 24px);
    min-width: 0;
  }

  .header .logo {
    min-width: 0;
  }

  .header nav.open {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}

@media (max-width: 768px) {
  .header {
    padding-left: 12px;
    padding-right: 10px;
    gap: 8px;
  }

  .header .logo {
    min-width: 0;
    max-width: calc(100% - 44px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
  }

  .header .logo span {
    flex: 0 0 25px;
  }

  .header .menu {
    flex: 0 0 44px;
    margin-right: -8px;
  }

  .header nav.open {
    right: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .project-row > * {
    min-width: 0;
  }

  .project-row h3,
  .project-row small,
  .project-row time,
  .contact > a {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .header {
    padding-left: 9px;
    padding-right: 7px;
  }

  .header .logo {
    gap: 7px;
    max-width: calc(100% - 40px);
  }

  .header .logo span {
    flex-basis: 23px;
    width: 23px;
    height: 23px;
  }

  .header .menu {
    flex-basis: 40px;
    width: 40px;
    margin-right: -5px;
  }
}