:root {
  --ink: #11120e;
  --paper: #f2f0e8;
  --acid: #d9ff43;
  --orange: #ff5a36;
  --blue: #5c74ff;
  --line: rgba(17, 18, 14, 0.18);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--ink); color: var(--acid); }

.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .045;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 28px 32px;
  color: var(--acid);
  background: var(--ink);
  transition: transform 1s cubic-bezier(.76,0,.24,1);
}
.loader.is-done { transform: translateY(-105%); }
.loader__top {
  display: flex;
  justify-content: space-between;
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.loader__number {
  margin: auto 0 0;
  font-size: clamp(7rem, 22vw, 20rem);
  font-weight: 700;
  line-height: .72;
  letter-spacing: -.09em;
}
.loader__track { height: 2px; margin-top: 28px; background: #33352c; }
.loader__track span { display: block; width: 0; height: 100%; background: var(--acid); }

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  width: 16px; height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .35s, height .35s, background .35s;
  mix-blend-mode: difference;
}
.cursor span {
  opacity: 0;
  font: 600 9px/1 var(--mono);
  letter-spacing: .08em;
  transition: opacity .2s;
}
.cursor.is-project { width: 78px; height: 78px; mix-blend-mode: normal; }
.cursor.is-project span { opacity: 1; }

.nav {
  position: absolute;
  top: 0; left: 0;
  z-index: 20;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 24px 3vw;
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
}
.nav__brand { justify-self: start; font: 800 25px/.8 var(--sans); letter-spacing: -.08em; }
.nav__brand sup { margin-left: 3px; font: 400 7px/1 var(--mono); vertical-align: top; }
.nav__status { display: flex; justify-content: center; align-items: center; gap: 9px; }
.nav__status i { width: 7px; height: 7px; border-radius: 50%; background: #58ba5a; animation: pulse 2s infinite; }
.nav__status time { opacity: .5; }
.nav nav { display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.nav__link { padding: 12px 0; }
.nav__link--round {
  display: flex; align-items: center; gap: 28px;
  padding: 13px 17px;
  border: 1px solid var(--ink);
  border-radius: 100px;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(88,186,90,0); } 0% { box-shadow: 0 0 0 0 rgba(88,186,90,.4); } }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 3vw 35px;
  overflow: hidden;
}
.hero__meta {
  position: relative; z-index: 2;
  display: flex;
  justify-content: space-between;
  margin-bottom: 3vh;
  padding: 0 .5vw;
  font: 400 10px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero__title {
  position: relative; z-index: 2;
  margin: 0;
  font-size: clamp(4.9rem, 13.1vw, 12.5rem);
  font-weight: 800;
  line-height: .75;
  letter-spacing: -.082em;
}
.hero__title .line {
  display: flex;
  overflow: hidden;
  padding: .08em .02em;
}
.hero__title .line > span {
  display: block;
  transform: translateY(120%);
  transition: transform 1.25s cubic-bezier(.16,1,.3,1);
}
.is-ready .hero__title .line > span { transform: translateY(0); }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .09s; }
.is-ready .hero__title .line:nth-child(3) > span { transition-delay: .18s; }
.line--offset { justify-content: flex-end; align-items: center; gap: 2vw; }
.line--accent { color: var(--orange); font-style: italic; }
.hero__avatar {
  width: clamp(62px, 9vw, 140px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.08);
  transform: scale(0);
  transition: transform 1s cubic-bezier(.16,1,.3,1) .55s;
}
.is-ready .hero__avatar { transform: scale(1) rotate(-8deg); }
.hero__footer {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 4vh;
}
.hero__footer > p { width: min(480px, 45vw); margin: 0; font-size: clamp(14px, 1.15vw, 18px); line-height: 1.55; }
.scroll-cue { display: flex; align-items: center; gap: 14px; font: 500 10px/1 var(--mono); text-transform: uppercase; }
.scroll-cue i { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid; border-radius: 50%; font-style: normal; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.orb--one { width: 25vw; height: 25vw; top: 4%; right: 18%; background: var(--acid); opacity: .65; }
.orb--two { width: 17vw; height: 17vw; bottom: 8%; left: 8%; background: var(--blue); opacity: .3; }

.marquee { overflow: hidden; padding: 22px 0; color: var(--paper); background: var(--ink); transform: rotate(-1.2deg) scale(1.02); }
.marquee__track { width: max-content; display: flex; align-items: center; gap: 28px; animation: marquee 20s linear infinite; }
.marquee span { font-size: clamp(1.6rem, 3vw, 3rem); font-weight: 700; letter-spacing: -.04em; }
.marquee i { color: var(--acid); font-size: 24px; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 140px 4vw; }
.section__eyebrow {
  display: grid; grid-template-columns: 60px 1fr; gap: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.about__layout { display: grid; grid-template-columns: 1.65fr 1fr; gap: 8vw; margin-top: 70px; }
.about__lead {
  margin: 0;
  font-size: clamp(2.7rem, 5.5vw, 6.6rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.065em;
}
.word-mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word-mask > span { display: inline-block; transform: translateY(110%); transition: transform .8s cubic-bezier(.16,1,.3,1); }
.is-visible .word-mask > span { transform: translateY(0); }
.about__copy { align-self: end; font-size: 16px; line-height: 1.7; }
.about__copy p { margin: 0 0 22px; }
.text-link { display: inline-flex; gap: 40px; margin-top: 12px; padding-bottom: 7px; border-bottom: 1px solid; font: 500 11px/1 var(--mono); text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 110px; border-top: 1px solid var(--line); }
.stat { padding: 30px 0; border-right: 1px solid var(--line); }
.stat:last-child { padding-left: 30px; border: 0; }
.stat:nth-child(2) { padding-left: 30px; }
.stat strong { display: block; font-size: clamp(3rem, 6vw, 7rem); line-height: 1; letter-spacing: -.08em; }
.stat span { display: block; margin-top: 10px; font: 400 10px/1 var(--mono); text-transform: uppercase; }

.work { background: #dcd9cf; }
.work__heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 70px 0 90px; }
.work__heading h2 { margin: 0; font-size: clamp(3.8rem, 8vw, 9rem); line-height: .82; letter-spacing: -.075em; }
.work__heading p { max-width: 240px; margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 70px 2vw; }
.project { position: relative; }
.project--featured { grid-column: span 2; display: grid; grid-template-columns: 1.6fr .8fr; gap: 2vw; }
.project__index { position: absolute; top: 16px; left: 16px; z-index: 2; font: 500 10px/1 var(--mono); }
.project__visual {
  position: relative;
  min-height: 430px;
  display: grid; place-items: center;
  overflow: hidden;
  transition: border-radius .5s cubic-bezier(.16,1,.3,1);
}
.project:hover .project__visual { border-radius: 36px; }
.project--featured .project__visual { min-height: 650px; }
.project__info { padding-top: 18px; border-top: 1px solid rgba(17,18,14,.35); }
.project--featured .project__info { align-self: end; padding-bottom: 10px; }
.project__type { font: 400 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.project h3 { margin: 14px 0 12px; font-size: clamp(2rem, 3.4vw, 4.2rem); line-height: .9; letter-spacing: -.06em; }
.project p { max-width: 500px; margin: 0; font-size: 13px; line-height: 1.55; }
.project__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.project__tags span { padding: 7px 10px; border: 1px solid rgba(17,18,14,.4); border-radius: 100px; font: 400 8px/1 var(--mono); text-transform: uppercase; }

.visual-os { background: var(--acid); }
.boot-screen {
  width: 72%;
  min-height: 62%;
  overflow: hidden;
  padding: 24px 28px 28px;
  border: 7px solid #292b25;
  border-radius: 5px;
  color: #d7d9cd;
  background: #080a08;
  box-shadow: 25px 35px 0 rgba(17,18,14,.15), inset 0 0 45px rgba(105,255,95,.035);
  transform: rotate(-3deg);
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.project:hover .boot-screen { transform: rotate(1deg) scale(1.04); }
.boot-screen__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #30342e;
  color: #7e8477;
  font: 500 8px/1 var(--mono);
  letter-spacing: .15em;
}
.boot-screen__output {
  font: 400 clamp(8px, .92vw, 12px)/1.6 var(--mono);
  white-space: nowrap;
}
.boot-line {
  display: flex;
  min-height: 1.6em;
  gap: 10px;
  opacity: 0;
  transform: translateY(4px);
  animation: boot-line-in .18s ease-out forwards;
}
.boot-line__service { overflow: hidden; text-overflow: ellipsis; }
.boot-line__status { margin-left: auto; color: #71e967; font-weight: 500; }
.boot-line--kernel { color: #788075; }
.boot-line--welcome {
  display: block;
  margin: 10px 0 5px;
  color: var(--acid);
  font-weight: 500;
  letter-spacing: .08em;
}
.boot-line--prompt::after {
  content: "_";
  color: var(--acid);
  animation: blink .8s steps(2) infinite;
}
.boot-screen.is-resetting .boot-screen__output { animation: boot-reset .32s ease-in forwards; }
@keyframes boot-line-in { to { opacity: 1; transform: translateY(0); } }
@keyframes boot-reset { to { opacity: 0; transform: translateY(-8px); filter: blur(2px); } }
@keyframes blink { 50% { opacity: 0; } }

.visual-hackintosh { background: #8b9cff; }
.laptop { width: 75%; transform: perspective(900px) rotateX(4deg) rotateY(-8deg); transition: transform .7s cubic-bezier(.16,1,.3,1); }
.project:hover .laptop { transform: perspective(900px) rotateX(0) rotateY(4deg) scale(1.04); }
.laptop__screen { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; border: 10px solid #1d1e1b; border-radius: 10px 10px 3px 3px; color: white; background: linear-gradient(135deg,#2e1658,#bd5d75 48%,#f9b279); box-shadow: 20px 25px 35px rgba(0,0,0,.22); }
.apple-mark { font-size: 40px; transform: rotate(45deg); }
.laptop__screen small { position: absolute; top: 10px; left: 12px; font: 400 7px/1 var(--mono); }
.dock { position: absolute; bottom: 9px; display: flex; gap: 5px; padding: 5px; border-radius: 5px; background: rgba(255,255,255,.25); }
.dock i { width: 12px; height: 12px; border-radius: 3px; background: rgba(255,255,255,.7); }
.laptop__base { width: 112%; height: 10px; margin-left: -6%; border-radius: 1px 1px 10px 10px; background: #b9b9b3; }

.visual-server { background: var(--orange); }
.rack { width: 66%; padding: 18px; border: 4px solid var(--ink); background: #2a2b25; box-shadow: 18px 18px 0 rgba(17,18,14,.18); transition: transform .6s cubic-bezier(.16,1,.3,1); }
.project:hover .rack { transform: translateY(-8px) rotate(-2deg); }
.rack > div { display: flex; align-items: center; gap: 8px; height: 54px; margin: 8px 0; padding: 0 14px; border: 1px solid #55584c; color: #a7aa98; background: #171814; font: 400 7px/1 var(--mono); }
.rack i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px var(--acid); }
.rack span { margin-left: auto; }

.visual-firewall { background: #1c211c; }
.radar { position: relative; width: 65%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid #557351; border-radius: 50%; color: var(--acid); background: repeating-radial-gradient(circle, transparent 0 19%, rgba(217,255,67,.15) 20%); }
.radar::before, .radar::after { content:""; position: absolute; background: rgba(217,255,67,.2); }
.radar::before { width: 100%; height: 1px; }
.radar::after { width: 1px; height: 100%; }
.radar__sweep { position: absolute; width: 50%; height: 50%; top: 0; right: 0; transform-origin: 0 100%; background: conic-gradient(from 0deg, rgba(217,255,67,.45), transparent 40deg); animation: sweep 3s linear infinite; }
.radar b { z-index: 2; text-align: center; font: 500 11px/1.5 var(--mono); letter-spacing: .12em; }
.ping { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); }
.ping--one { top: 30%; left: 62%; }.ping--two { top: 68%; left: 34%; }.ping--three { top: 53%; left: 77%; }
@keyframes sweep { to { transform: rotate(360deg); } }

.visual-ai { background: #e8e5db; }
.ai-core { position: relative; width: 52%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid; border-radius: 50%; font: 500 11px/1 var(--mono); letter-spacing: .15em; }
.ai-core::before, .ai-core::after { content:""; position: absolute; inset: -15%; border: 1px dashed; border-radius: 45%; animation: spin 12s linear infinite; }
.ai-core::after { inset: -30%; animation-direction: reverse; animation-duration: 18s; }
.ai-core div { width: 50%; height: 2px; margin: 18px; background: var(--ink); box-shadow: 0 -10px 0 var(--ink), 0 10px 0 var(--ink); }
.ai-core small { font: 400 7px/1 var(--mono); }
@keyframes spin { to { transform: rotate(360deg); } }

.all-work { display: flex; align-items: center; justify-content: space-between; margin-top: 120px; padding: 28px 0; border-top: 1px solid; border-bottom: 1px solid; font-size: clamp(1.7rem, 3vw, 3.6rem); font-weight: 600; letter-spacing: -.04em; }
.all-work i { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid; border-radius: 50%; font-style: normal; }

.contact { min-height: 94vh; display: flex; flex-direction: column; color: var(--paper); background: var(--ink); }
.section__eyebrow--light { border-color: rgba(242,240,232,.25); }
.contact__kicker { margin: 65px 0 25px; font: 400 12px/1.4 var(--mono); text-transform: uppercase; }
.contact__mail { display: block; width: fit-content; margin: auto 0; color: var(--acid); font-size: clamp(4.5rem, 12vw, 13rem); font-weight: 700; line-height: .76; letter-spacing: -.085em; }
.contact__bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 70px; padding-top: 25px; border-top: 1px solid rgba(242,240,232,.25); }
.contact__socials { display: flex; gap: 30px; font: 400 10px/1 var(--mono); text-transform: uppercase; }
.back-top { display: flex; align-items: center; gap: 18px; font: 400 10px/1 var(--mono); text-transform: uppercase; }
.back-top i { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid; border-radius: 50%; font-style: normal; }
footer { display: flex; justify-content: space-between; padding: 20px 4vw; color: #898a82; background: var(--ink); font: 400 8px/1 var(--mono); text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .cursor { display: none; }
  .nav { grid-template-columns: 1fr 1fr; }
  .nav__status { display: none; }
  .nav nav { gap: 15px; }
  .nav nav .nav__link:not(.nav__link--round) { display: none; }
  .hero { min-height: 850px; padding-top: 120px; }
  .hero__title { font-size: clamp(4rem, 20vw, 7rem); }
  .hero__title .line { justify-content: flex-start; }
  .line--offset { gap: 15px; }
  .hero__avatar { width: 58px; }
  .hero__footer { align-items: flex-start; gap: 45px; flex-direction: column; }
  .hero__footer > p { width: 90%; }
  .orb--one { width: 55vw; height: 55vw; top: 18%; right: -20%; }
  .orb--two { width: 40vw; height: 40vw; bottom: 10%; left: -10%; }
  .section { padding: 95px 5vw; }
  .about__layout { grid-template-columns: 1fr; gap: 55px; }
  .about__copy { max-width: 520px; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(2), .stat:last-child { padding: 25px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .work__heading { align-items: flex-start; flex-direction: column; gap: 30px; }
  .projects { grid-template-columns: 1fr; gap: 70px; }
  .project--featured { grid-column: auto; display: block; }
  .project__visual, .project--featured .project__visual { min-height: 430px; }
  .project--featured .project__info { padding-bottom: 0; }
  .contact { min-height: 800px; }
  .contact__bottom { align-items: flex-start; flex-direction: column; gap: 50px; }
}

@media (max-width: 480px) {
  .loader { padding: 18px; }
  .nav { padding: 18px 5vw; }
  .nav__link--round { gap: 13px; padding: 11px 13px; }
  .hero { min-height: 730px; padding-left: 5vw; padding-right: 5vw; }
  .hero__meta p:last-child { display: none; }
  .hero__title { font-size: 19vw; line-height: .82; }
  .project__visual, .project--featured .project__visual { min-height: 330px; }
  .boot-screen { width: 88%; min-height: 70%; padding: 18px; border-width: 5px; }
  .boot-screen__output { font-size: 7px; }
  .rack { width: 78%; }
  .radar { width: 75%; }
  .contact__socials { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .loader { display: none; }
  .hero__title .line > span, .hero__avatar, .word-mask > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
