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

:root {
  --ink: #111b22;
  --paper: #f4f3ef;
  --muted: #7b8588;
  --line: #d9dbd6;
  --lime: #d8ff62;
  --blue: #a8d5f2;
  --mono: 'DM Mono', monospace;
  --sans: 'Manrope', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */

.site_header {
  height: 78px;
  padding: 0 7.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1.8px;
}

.wordmark span {
  color: #82a900;
}

.site_header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12px;
  font-weight: 700;
}

.site_header nav a {
  transition: opacity 0.2s;
}

.site_header nav a:hover,
.text_link:hover {
  opacity: 0.65;
}

.nav_contact {
  border: 1px solid var(--ink);
  padding: 11px 15px;
}

.nav_contact span {
  margin-left: 12px;
}

.section_wrap {
  padding-left: 10%;
  padding-right: 10%;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 650px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 7%;
  padding-top: 75px;
  padding-bottom: 100px;
  overflow: hidden;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 500;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status_dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8da82d;
  box-shadow: 0 0 0 4px #8da82d20;
}

.hero h1 {
  font-size: clamp(64px, 8.8vw, 122px);
  letter-spacing: -0.09em;
  line-height: 0.94;
  margin: 30px 0 25px;
  font-weight: 800;
}

.hero h1 span {
  color: #7e898b;
}

.hero_intro {
  font-size: 17px;
  line-height: 1.8;
  max-width: 430px;
  color: #5b666a;
}

.hero_actions,
.contact_actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  padding: 15px 19px;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button_primary {
  background: var(--ink);
  color: white;
}

.button_primary span {
  color: var(--lime);
}

.text_link {
  font-size: 12px;
  font-weight: 800;
}

.text_link span {
  margin-left: 8px;
}

.hero_art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 430px;
  width: 100%;
  justify-self: end;
  background: #17242a;
  overflow: hidden;
}

.art_grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff0d 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: 34px 34px;
}

.orbit {
  position: absolute;
  border: 1px solid #d8ff6270;
  border-radius: 50%;
  width: 82%;
  aspect-ratio: 1;
  left: 9%;
  top: 9%;
  transform: rotate(-28deg) scaleY(0.55);
}

.orbit_two {
  width: 65%;
  left: 17.5%;
  top: 17.5%;
  transform: rotate(53deg) scaleY(0.72);
  border-color: #a8d5f270;
}

.art_core {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  left: 29%;
  top: 29%;
  display: grid;
  place-items: center;
  background: var(--lime);
  border-radius: 50%;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: -5px;
  box-shadow: 0 0 80px #d8ff622b;
}

.art_core i {
  position: absolute;
  width: 11px;
  height: 11px;
  background: #17242a;
  border: 3px solid var(--lime);
  border-radius: 50%;
  right: 10%;
  top: 15%;
}

.art_label {
  position: absolute;
  color: #f4f3ef;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
}

.label_top {
  top: 7%;
  left: 7%;
}

.label_bottom {
  bottom: 7%;
  right: 7%;
  font-size: 7px;
}

.art_cross {
  position: absolute;
  color: var(--lime);
  font-size: 22px;
}

.cross_one {
  top: 22%;
  right: 13%;
}

.cross_two {
  bottom: 19%;
  left: 13%;
  color: var(--blue);
}

.hero_footer {
  position: absolute;
  bottom: 30px;
  left: 10%;
  right: 10%;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ---------- About ---------- */

.about {
  padding-top: 110px;
  padding-bottom: 115px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: start;
}

.section_heading h2,
.skills h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.065em;
  line-height: 1.12;
  margin: 25px 0 0;
}

.section_heading h2 span {
  color: #8a9494;
}

.about_copy {
  padding-top: 45px;
}

.about_copy p {
  font-size: 14px;
  line-height: 1.95;
  color: #586368;
  margin: 0 0 19px;
}

.about_copy .text_link {
  display: inline-block;
  margin-top: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
}

/* ---------- Projects ---------- */

.projects {
  padding-top: 90px;
  padding-bottom: 110px;
  background: #e9e9e3;
}

.section_topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.muted_note {
  font-size: 10px;
  color: #6c7679;
}

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

.project_card {
  background: var(--paper);
  padding: 12px;
  min-width: 0;
}

.project_featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  column-gap: 25px;
  align-items: center;
}

.project_visual {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  background: #17242a;
  color: white;
  padding: 20px;
}

.project_featured .project_visual {
  min-height: 300px;
}

.visual_tag {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: #d8ff62;
}

.chart_mock {
  height: 135px;
  position: absolute;
  bottom: 54px;
  left: 11%;
  right: 11%;
  display: flex;
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid #ffffff35;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 33px,
    #ffffff13 34px
  );
}

.chart_mock span {
  flex: 1;
  background: #d8ff62;
  min-width: 7px;
}

.chart_mock span:nth-child(even) {
  background: #a8d5f2;
}

.visual_caption {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.visual_caption span {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 400;
  color: #aab5b8;
  align-self: center;
}

.project_info {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 12px 14px;
}

.project_info h3 {
  font-size: 19px;
  letter-spacing: -0.7px;
  margin: 0 0 10px;
}

.project_info p {
  font-size: 11px;
  line-height: 1.8;
  color: #647075;
  margin: 0;
  max-width: 480px;
}

.project_featured .project_info {
  padding: 22px 8px 14px 0;
}

.round_link {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: background 0.2s;
}

.round_link:hover {
  background: var(--lime);
}

.round_static {
  color: #7d898d;
}

.tag_row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0 12px 13px;
}

.tag_row span,
.skill_list span {
  font-family: var(--mono);
  font-size: 8px;
  padding: 7px 9px;
  border: 1px solid #d8dcd5;
  color: #566165;
}

.project_featured .tag_row {
  grid-column: 2;
  padding-left: 0;
}

.visual_compiler {
  background: #202b34;
}

.code_lines {
  position: absolute;
  top: 63px;
  left: 24px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  color: #aebbc1;
  font-family: var(--mono);
  font-size: 10px;
}

.code_accent {
  color: var(--lime);
}

.visual_deck {
  background: #d8e5e6;
  color: #17242a;
}

.visual_deck .visual_tag {
  color: #48666b;
}

.visual_deck .visual_caption span {
  color: #53676a;
}

.deck_diagram {
  position: absolute;
  top: 68px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.deck_diagram span {
  font-family: var(--mono);
  font-size: 7px;
  padding-top: 60px;
  z-index: 1;
}

.deck_beam {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background: #3d7476;
  transform: skewY(-8deg);
}

.beam_two {
  top: 42px;
  transform: skewY(8deg);
  background: #92b9b9;
}

.beam_three {
  top: 58px;
  transform: skewY(-8deg);
  background: #3d7476;
}

/* ---------- Skills ---------- */

.skills {
  padding-top: 110px;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
}

.skills_content {
  padding-top: 9px;
}

.skills_intro {
  font-size: 14px;
  line-height: 1.8;
  color: #647075;
  max-width: 420px;
  margin: 0 0 34px;
}

.skill_group {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.skill_group h3 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  margin: 0 0 14px;
  color: #59666a;
}

.skill_list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.skill_list span {
  font-size: 9px;
  padding: 9px 11px;
  color: var(--ink);
}

.skills_note {
  font-size: 10px;
  line-height: 1.7;
  color: #7a8588;
  margin-top: 10px;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--ink);
  color: #f4f3ef;
  padding-top: 95px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.contact:after {
  content: 'RG';
  position: absolute;
  right: 4%;
  bottom: -19%;
  font-size: clamp(200px, 34vw, 450px);
  font-weight: 800;
  letter-spacing: -0.1em;
  color: #ffffff06;
  pointer-events: none;
}

.contact .eyebrow {
  color: var(--lime);
}

.contact h2 {
  font-size: clamp(45px, 7.3vw, 88px);
  letter-spacing: -0.08em;
  line-height: 0.99;
  margin: 30px 0 24px;
  position: relative;
  z-index: 1;
}

.contact h2 span {
  color: var(--lime);
}

.contact_intro {
  font-size: 13px;
  line-height: 1.8;
  color: #aeb8bb;
  max-width: 430px;
}

.button_light {
  background: var(--lime);
  color: var(--ink);
}

.button_light span {
  font-size: 15px;
}

.light_link {
  color: #f4f3ef;
}

.contact_note {
  font-size: 9px;
  color: #879397;
  margin-top: 28px;
}

.contact_actions {
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */

.site_footer {
  min-height: 92px;
  padding: 24px 7.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site_footer p,
.site_footer > a:not(.wordmark),
.footer_year {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.5px;
  color: #6f7b7f;
}

.site_footer > a:not(.wordmark) {
  font-weight: 500;
}

.footer_year {
  color: #6f7b7f;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .site_header {
    height: 68px;
    padding: 0 6%;
  }

  .site_header nav {
    gap: 14px;
    font-size: 10px;
  }

  .site_header nav a:nth-child(1),
  .site_header nav a:nth-child(3) {
    display: none;
  }

  .nav_contact {
    padding: 9px 11px;
  }

  .section_wrap {
    padding-left: 7%;
    padding-right: 7%;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 75px;
    padding-bottom: 92px;
  }

  .hero h1 {
    font-size: clamp(72px, 17vw, 112px);
  }

  .hero_art {
    width: min(100%, 390px);
    justify-self: center;
  }

  .hero_footer {
    left: 7%;
    right: 7%;
    font-size: 7px;
  }

  .about,
  .skills {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 75px;
    padding-bottom: 80px;
  }

  .about_copy {
    padding-top: 0;
  }

  .projects {
    padding-top: 75px;
    padding-bottom: 80px;
  }

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

  .project_featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .project_featured .project_visual {
    min-height: 250px;
  }

  .project_featured .project_info {
    padding: 22px 12px 14px;
  }

  .project_featured .tag_row {
    grid-column: auto;
    padding-left: 12px;
  }

  .section_topline {
    align-items: start;
    gap: 16px;
  }

  .muted_note {
    max-width: 130px;
    text-align: right;
    line-height: 1.6;
  }

  .contact {
    padding-top: 75px;
    padding-bottom: 70px;
  }

  .site_footer {
    padding: 23px 6%;
    flex-wrap: wrap;
  }

  .site_footer p {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .footer_year {
    margin-left: auto;
  }
}

@media (max-width: 390px) {
  .site_header nav {
    gap: 10px;
  }

  .site_header nav a:nth-child(2) {
    display: none;
  }

  .hero_actions {
    gap: 16px;
  }

  .button {
    gap: 13px;
    padding: 14px;
  }

  .text_link {
    font-size: 10px;
  }

  .hero_footer {
    font-size: 6px;
  }

  .visual_caption {
    font-size: 8px;
  }

  .visual_caption span {
    font-size: 6px;
  }
}

/* ---------- Contact details ---------- */

.contact_details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 3px;
}

.contact_note {
  margin: 0;
}