:root {
  --ink: #090909;
  --paper: #f1eee8;
  --red: #ff3b30;
  --muted: #9b9590;
  --line: rgba(241, 238, 232, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Manrope, Arial, sans-serif;
  cursor: none;
}

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

.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  height: 7px;
  width: 7px;
  background: var(--red);
}

.cursor-ring {
  height: 31px;
  width: 31px;
  border: 1px solid var(--red);
  transition: 0.18s;
}

.cursor-ring.hover {
  height: 54px;
  width: 54px;
  background: rgba(255, 59, 48, 0.13);
}

.nav-wrap {
  height: 76px;
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.5vw;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  font-size: 23px;
  text-decoration: none;
  color: var(--paper);
}

.brand span,
.nav-contact {
  color: var(--red);
}

nav {
  display: flex;
  gap: 28px;
}

nav a,
.nav-contact {
  font: 500 10px 'DM Mono', monospace;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.nav-wrap a {
  color: var(--paper);
}

.nav-contact i {
  color: var(--red);
  font-size: 16px;
}

.section {
  padding-left: 5.5vw;
  padding-right: 5.5vw;
}

.hero {
  height: 100svh;
  min-height: 700px;
  position: relative;
  padding-top: 145px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.eyebrow,
.section-label,
.project-type,
.tags,
.fact-row,
.contact-bottom,
.project-links,
.contact-links,
.resume-card span {
  font: 500 10px 'DM Mono', monospace;
  letter-spacing: 0.08em;
}

.eyebrow {
  color: var(--muted);
}

.eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 9px;
  box-shadow: 0 0 14px var(--red);
}

.hero-copy {
  margin-top: auto;
  z-index: 1;
}

.intro {
  max-width: 370px;
  color: #c0b9b4;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 28px;
}

.hero h1,
.about h2,
.project h2,
.stack h2,
.academics h2,
.resume h2,
.contact h2 {
  margin: 0;
  font-size: clamp(4rem, 10.6vw, 10rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
}

.hero em,
h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--red);
}

.hero-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  z-index: 1;
}

.hero-foot p {
  font: 11px/1.7 'DM Mono', monospace;
  color: var(--muted);
}

.scroll-cue {
  color: var(--paper);
  text-decoration: none;
  font: 10px 'DM Mono', monospace;
}

.scroll-cue b {
  font-size: 22px;
  color: var(--red);
  margin-left: 14px;
}

.hero-path {
  position: absolute;
  inset: auto 0 -70px;
  z-index: 0;
  width: 100%;
  height: 570px;
  stroke: rgba(255, 59, 48, 0.4);
  fill: none;
  stroke-width: 1.2;
}

.hero-path .pulse {
  fill: rgba(255, 59, 48, 0.18);
  animation: pulse 2.8s ease-in-out infinite;
}

.about {
  padding-top: 130px;
  padding-bottom: 140px;
  background: var(--paper);
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 10vw;
  margin-top: 54px;
  align-items: end;
}

.about h2 {
  font-size: clamp(3rem, 6.6vw, 7.3rem);
}

.about h2 em {
  color: #b22620;
}

.body-copy {
  font-size: 17px;
  line-height: 1.65;
  color: #3f3b39;
}

.fact-row {
  border-top: 1px solid #bbb3ac;
  padding-top: 14px;
  margin-top: 52px;
  color: #625b56;
}

.work {
  padding-top: 145px;
  padding-bottom: 80px;
  background: transparent;
  color: var(--paper);
}

.section-head,
.stack-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 75px;
}

.section-head p,
.stack-top p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.project {
  min-height: 510px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 11% 54% 35%;
  padding: 30px 0;
}

.project:last-child {
  border-bottom: 1px solid var(--line);
}

.project-number {
  color: var(--red);
  font: 12px 'DM Mono', monospace;
}

.project-content {
  align-self: center;
}

.project-content-code {
  align-self: start;
  padding-top: 6px;
}

.project-type {
  color: var(--muted);
}

.project h2 {
  font-size: clamp(3.2rem, 6.3vw, 6.8rem);
  margin: 17px 0 24px;
}

.project p {
  max-width: 420px;
  color: #b9b3af;
  font-size: 14px;
  line-height: 1.7;
}

.codeblitz-title {
  margin: 8px 0 22px;
}

.codeblitz-title h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(4rem, 7.9vw, 7.8rem);
  line-height: 0.82;
  letter-spacing: -0.09em;
}

.codeblitz-title h3 {
  margin: 4px 0 0;
  color: var(--red);
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  line-height: 0.9;
  white-space: nowrap;
}

.project-code .project-links {
  margin-top: 30px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.tags span {
  border: 1px solid var(--line);
  padding: 7px 9px;
}

.project-links {
  margin-top: 24px;
}

.project-links a,
.contact-links a,
.resume-card {
  text-decoration: none;
  color: var(--paper);
}

.contact-links a {
  color: var(--ink);
}

.project-links a,
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.project-links a span,
.contact-links a span {
  color: #b22620;
  font-size: 16px;
}

.orbital {
  height: 320px;
  width: 320px;
  position: relative;
  align-self: center;
}

.orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(255, 59, 48, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-a {
  width: 310px;
  height: 120px;
  animation: spin 12s linear infinite;
}

.orbit-b {
  width: 270px;
  height: 270px;
  border-style: dashed;
  animation: spin 18s linear infinite reverse;
}

.core {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  height: 70px;
  width: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--ink);
  font-weight: 800;
}

.orbital span {
  position: absolute;
  font: 10px 'DM Mono', monospace;
  color: var(--muted);
}

.orbital span:nth-of-type(1) {
  top: 15px;
  left: 80px;
}

.orbital span:nth-of-type(2) {
  right: 18px;
  top: 145px;
}

.orbital span:nth-of-type(3) {
  left: 102px;
  bottom: 15px;
}

.code-window {
  position: relative;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f3ede6;
  padding: 22px 22px 24px;
  border-radius: 22px;
  box-shadow: none;
  align-self: start;
  font-family: 'DM Mono', monospace;
}

.code-window::before {
  content: '';
  position: absolute;
  inset: 28px -18px -18px 28px;
  background: rgba(111, 27, 22, 0.62);
  border-radius: 0;
  z-index: -1;
}

.window-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.window-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.window-top span {
  margin-left: auto;
  font-size: 11px;
  color: rgba(243, 237, 230, 0.72);
}

.code-window pre {
  margin: 0;
  font-size: 14px;
  line-height: 2;
  white-space: pre-wrap;
}

.code-window b {
  color: #ff8f7f;
}

.code-window i {
  color: #8fd6c0;
}

.code-window u {
  text-decoration-color: #f5b46a;
}

.caret {
  animation: blink 1s steps(1) infinite;
}

.stack {
  padding-top: 120px;
  padding-bottom: 130px;
  background: transparent;
  color: var(--paper);
}

.stack-top h2,
.academics h2,
.resume h2 {
  font-size: clamp(3rem, 6.4vw, 7rem);
}

.skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skills > div {
  min-height: 180px;
  padding: 24px 18px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skills span,
.education-list span {
  font: 500 10px 'DM Mono', monospace;
  letter-spacing: 0.08em;
}

.skills h3,
.education-list h3 {
  margin: 16px 0 10px;
  font-size: 20px;
}

.skills p,
.education-list p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.academics {
  padding-top: 130px;
  padding-bottom: 110px;
  background: var(--paper);
  color: var(--ink);
}

.academic-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 8vw;
  align-items: start;
  margin-bottom: 54px;
}

.education-list {
  display: grid;
  gap: 18px;
}

.education-list article {
  background: var(--paper);
  border: 1px solid #ded5cc;
  padding: 22px 20px 18px;
}

.education-list strong {
  font: 800 14px 'DM Mono', monospace;
  color: #b22620;
}

.cert-strip {
  display: flex;
  gap: 34px;
  overflow: auto;
  padding: 18px 0;
  border-top: 1px solid #c8c0b9;
  border-bottom: 1px solid #c8c0b9;
  font: 500 10px 'DM Mono', monospace;
  color: #6e6862;
}

.certifications {
  padding-top: 130px;
  padding-bottom: 120px;
  background: var(--ink);
  color: var(--paper);
}

.certifications-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8vw;
  align-items: start;
  margin-top: 54px;
}

.certifications h2 {
  font-size: clamp(3rem, 6.4vw, 7rem);
}

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

.certifications-grid article {
  border: 1px solid var(--paper);
  padding: 22px 20px 18px;
  background: #111;
  min-height: 180px;
}

.certifications-grid span {
  display: inline-block;
  margin-bottom: 16px;
  font: 500 10px 'DM Mono', monospace;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.certifications-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.certifications-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.resume {
  padding-top: 130px;
  padding-bottom: 110px;
  background: var(--ink);
  color: var(--paper);
}

.resume-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 6vw;
  align-items: end;
  margin-top: 54px;
}

.resume-card {
  display: block;
  border: 1px solid var(--paper);
  background: var(--paper);
  padding: 26px;
  min-height: 210px;
}

.resume-card strong {
  display: block;
  margin: 16px 0 18px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.resume-card p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.resume .body-copy {
  color: var(--paper);
}

.proof {
  background: var(--paper);
  color: var(--ink);
  padding-top: 145px;
  padding-bottom: 130px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
}

.proof-grid div {
  border-left: 1px solid #bdb5af;
  padding: 0 20px;
}

.proof-grid div:first-child {
  border: 0;
  padding-left: 0;
}

.proof-grid strong {
  display: block;
  font-size: clamp(3.5rem, 7vw, 7rem);
  letter-spacing: -0.08em;
}

.proof-grid span,
.achievements {
  font: 10px/1.6 'DM Mono', monospace;
  color: #625b56;
}

.achievements {
  border-top: 1px solid #bdb5af;
  padding-top: 16px;
  margin-top: 67px;
}

.contact {
  min-height: 690px;
  padding-top: 155px;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.contact-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  right: -170px;
  top: -90px;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.22), transparent 66%);
}

.contact h2 {
  margin: 60px 0 45px;
  font-size: clamp(4rem, 9vw, 9.5rem);
  position: relative;
}

.email-link {
  font-size: clamp(1.3rem, 2.6vw, 2.6rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.contact-links {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.contact-bottom {
  position: absolute;
  bottom: 32px;
  left: 5.5vw;
  right: 5.5vw;
  display: flex;
  justify-content: space-between;
  color: var(--ink);
}

.contact-bottom a {
  color: var(--ink);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: 0.75s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 720px) {
  body {
    cursor: auto;
  .about,
  .work,
  .stack,
  .academics,
  .certifications,
  .resume,
  .contact {

  }

  .about,
  .stack,
  .academics,
  .contact {
    background: var(--paper);
    color: var(--ink);
  }

  .work,
  .certifications,
  .resume {
    background: var(--ink);
    color: var(--paper);
  .section {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .nav-wrap {
    height: 66px;
  }

  .certifications-layout,
  nav {
    display: none;
  }

  .hero {
    min-height: 680px;
    padding-top: 115px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 17vw, 6rem);
  }

  .about,
  .work,
  .stack,
  .academics,
  .resume,
  .contact {
    padding-top: 95px;
    background: #f6f0e7;

  .about {
    padding-bottom: 95px;
  }

  .about-grid,
  .stack-top,
  .academic-layout,
  .resume-grid {
    grid-template-columns: 1fr;
    display: grid;
    gap: 34px;
  }

  .section-head {
    display: block;
    margin-bottom: 45px;
  }

  .section-head p {
    margin-top: 25px;
  }

  .project {
    grid-template-columns: 38px 1fr;
    min-height: 0;
    padding: 25px 0 50px;
  }

  .project-content,
  .orbital,
  .code-window {
    grid-column: 2;
  }

  .project-content-code {
    padding-top: 0;
  }

  .codeblitz-title h2 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .codeblitz-title h3 {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .orbital,
  .code-window {
    margin-top: 28px;
  }

  .orbital {
    height: 260px;
    width: 260px;
  }

  .orbit-a {
    width: 240px;
    height: 90px;
  }

  .orbit-b {
    width: 210px;
    height: 210px;
  }

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

  .skills > div:nth-child(2) {
    border-right: 0;
  }

  .skills > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .academic-layout {
    margin-bottom: 55px;
  }

  .cert-strip {
    margin: 0 -6vw;
    padding-left: 6vw;
  }

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

  .proof {
    padding-top: 95px;
  }

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

  .proof-grid div,
  .proof-grid div:first-child {
    border: 0;
    border-top: 1px solid #bdb5af;
    padding: 16px 0;
  }

  .contact {
    min-height: 580px;
  }

  .contact-bottom {
    left: 6vw;
    right: 6vw;
  }

  .contact-bottom span:nth-child(2) {
    display: none;
  }
}