@font-face {
  font-family: "DM Sans Local";
  src: url("fonts/dm-sans-300.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: block;
}

@font-face {
  font-family: "DM Sans Local";
  src: url("fonts/dm-sans-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "DM Sans Local";
  src: url("fonts/dm-sans-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: block;
}

@font-face {
  font-family: "DM Sans Local";
  src: url("fonts/dm-sans-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "DM Sans Local";
  src: url("fonts/dm-sans-300-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 300;
  font-display: block;
}

:root {
  --black: #1c1c1c;
  --nav: rgba(15, 15, 15, 0.92);
  --white: #fcfcfc;
  --cream: #f5f0e8;
  --blue: #1b49ca;
  --pink: #fe65cf;
  --lime: #d6fc35;
  --line: rgba(214, 252, 53, 0.14);
  --font-display: "Boldonse", "Bebas Neue", Impact, sans-serif;
  --font-body: "DM Sans Local", "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

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

p,
li,
a,
span,
strong,
em {
  font-family: var(--font-body);
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 19px 48px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--nav);
  backdrop-filter: blur(4px);
}

.brand {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  letter-spacing: 1.92px;
}

.brand span {
  color: var(--lime);
  font-family: var(--font-display);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: rgba(245, 240, 232, 0.62);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.57px;
  line-height: 21px;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--lime);
}

.nav-links .nav-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 18px 6px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  color: var(--lime);
  line-height: 1;
}

.nav-links .nav-cv:hover,
.nav-links .nav-cv:focus-visible {
  background: var(--lime);
  color: var(--black);
  outline: 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: var(--white);
}

.section-dark {
  background: var(--black);
}

section {
  scroll-margin-top: 110px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: clamp(820px, 100vh, 988px);
  height: clamp(820px, 100dvh, 988px);
  padding: 150px 48px 64px;
  overflow: hidden;
  border-bottom: 4px solid var(--lime);
}

.hero-inner {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-photo {
  position: absolute;
  z-index: 2;
  top: auto;
  right: 11.8%;
  bottom: 0;
  width: auto;
  height: calc(100% - 78px);
  max-height: 988px;
  aspect-ratio: 862 / 988;
  pointer-events: none;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 20%, #000 82%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 20%, #000 82%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
  mask-composite: intersect;
}

.hero h1 {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: clamp(64px, 8.9vw, 128px);
  line-height: 1.43;
  letter-spacing: 2.08px;
}

.hero-role {
  min-width: 320px;
  margin: 0;
  color: var(--pink);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 2.04;
  letter-spacing: 2.62px;
  text-align: right;
  text-transform: uppercase;
}

.hero-bottom {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 40px;
}

.hero-bottom p {
  max-width: 441px;
  margin: 0;
  color: rgba(245, 240, 232, 0.65);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.62;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--lime);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.8px;
  line-height: 19px;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.blur {
  position: absolute;
  z-index: 1;
  width: 548px;
  height: 548px;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
}

.blur-blue {
  left: -132px;
  top: 86px;
  background: var(--blue);
}

.blur-pink {
  right: -150px;
  bottom: -274px;
  background: var(--pink);
}

.section {
  padding: 96px 48px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding-top: 32px;
  margin-bottom: 64px;
}

.section-heading span {
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.92px;
}

.section-heading h2 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 2.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 10px;
  gap: 32px;
  min-height: 265px;
  padding: 40px 0 41px;
  border-bottom: 1px solid var(--line);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.66;
}

.timeline-meta strong {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 1px;
}

.timeline-meta em {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 1px;
}

.timeline-content h3,
.education h3,
.project-grid h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 1.28px;
  text-transform: uppercase;
}

.eyebrow {
  margin: 5px 0 0;
  color: var(--lime);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 1.75px;
  text-transform: uppercase;
}

.timeline-content ul,
.skills-grid ul {
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.timeline-content li {
  position: relative;
  padding-left: 19px;
  margin-bottom: 6px;
  color: rgba(252, 252, 252, 0.9);
  font-family: var(--font-body);
  font-size: 14.1px;
  font-weight: 300;
  line-height: 22.5px;
}

.timeline-content li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--pink);
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.education {
  min-height: 568px;
  padding-top: 48px;
  padding-bottom: 94px;
  border-top: 2px solid var(--lime);
  border-bottom: 4px solid var(--pink);
}

.education .section-heading {
  margin-bottom: 48px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.education article {
  position: relative;
  min-height: 258px;
  padding: 0 0 0 28.8px;
}

.education article > span {
  position: absolute;
  top: -2px;
  left: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--blue);
}

.education article:nth-child(n + 3) > span {
  background: var(--lime);
}

.education article p:first-of-type,
.skills-grid p {
  margin: 0 0 16px;
  color: rgba(252, 252, 252, 0.45);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 1.61px;
  text-transform: uppercase;
}

.education strong {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 23px;
  margin: 22px 0 13px;
  color: var(--pink);
  font-family: var(--font-body);
  font-size: 12.8px;
  font-weight: 500;
  letter-spacing: 2.28px;
  line-height: 1.33;
  text-transform: uppercase;
}

.education strong span {
  flex: 0 0 auto;
  padding: 4.2px 12.2px;
  border-radius: 2px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 11.2px;
  font-weight: 500;
  letter-spacing: 1.12px;
  line-height: 1;
}

.education article:nth-child(n + 3) strong span {
  background: var(--lime);
  color: var(--black);
}

.education article p:last-child {
  margin: 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13.6px;
  font-weight: 300;
  line-height: 21.76px;
}

.skills {
  min-height: 546px;
  padding-top: 80px;
  padding-bottom: 80px;
  background: var(--blue);
  border-bottom: 4px solid var(--lime);
}

.skills .section-heading {
  margin-bottom: 64px;
}

.light-heading span,
.contact-heading span {
  color: var(--pink);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.skills-grid p {
  margin: 0 0 24px;
  color: var(--pink);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.skills-grid article {
  min-height: 202px;
  padding: 23px 24px 0;
  border-right: 1px solid rgba(214, 252, 53, 0.55);
}

.skills-grid article:last-child {
  border-right: 0;
}

.skills-grid li {
  margin-bottom: 5px;
  font-family: var(--font-body);
  font-size: 20.8px;
  font-weight: 500;
  line-height: 29px;
  letter-spacing: 0.83px;
}

.projects {
  position: relative;
  min-height: 781px;
  border-top: 4px solid var(--lime);
  border-bottom: 4px solid var(--pink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  border: 0;
  padding: 0;
}

.project-actions {
  display: flex;
  justify-content: flex-end;
  margin: -38px 0 30px;
}

.project-actions a {
  color: var(--lime);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.8px;
  line-height: 19px;
  text-transform: uppercase;
}

.project-card {
  position: relative;
  display: block;
  min-height: 252px;
  aspect-ratio: 1.25 / 1;
  overflow: hidden;
  border: 1px solid rgba(214, 252, 53, 0.26);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.project-card::before {
  content: none;
}

.project-card:hover,
.project-card:focus-visible {
  background: rgba(254, 101, 207, 0.07);
  border-bottom-color: var(--pink);
  border-color: rgba(254, 101, 207, 0.72);
  outline: 0;
  transform: translateY(-3px);
}

.project-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.035);
}

.project-card-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 58%;
  padding: 24px 18px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 15, 0.58) 38%, rgba(15, 15, 15, 0.9) 100%);
}

.project-card small {
  display: inline-block;
  margin-top: 12px;
  color: var(--lime);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1.55px;
  line-height: 18px;
  text-transform: uppercase;
}

.project-grid strong {
  position: absolute;
  right: 14px;
  top: 12px;
  color: rgba(252, 252, 252, 0.28);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 44px;
  line-height: 1;
}

.contact {
  min-height: 670px;
  background: var(--white);
  color: var(--black);
  border-top: 4px solid var(--pink);
}

.contact-heading {
  margin-bottom: 28px;
}

.contact-heading h2 {
  color: var(--black);
}

.contact-title {
  max-width: 672px;
  margin: 0 0 48px;
  font-family: var(--font-display);
  font-size: 0;
  line-height: 126px;
  letter-spacing: -6px;
  text-transform: uppercase;
}

.contact-title-work {
  color: var(--black);
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 126px;
}

.contact-title-together {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 112px;
  line-height: 126px;
}

.contact-title b {
  color: var(--pink);
  font-family: var(--font-display);
  font-size: 112px;
  font-weight: inherit;
  line-height: 126px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding-bottom: 32px;
  border-bottom: 6px solid var(--lime);
}

.contact-links a {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--pink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 25.6px;
}

.contact-links span {
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 11.2px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 18px;
  text-transform: uppercase;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 48px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--black);
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 19.2px;
  letter-spacing: 0.96px;
}

@media (max-width: 980px) {
  .nav {
    padding-inline: 24px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px 24px;
    background: var(--nav);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
  }

  .nav-links .nav-cv {
    width: auto;
    min-width: 112px;
    margin-top: 8px;
    padding: 10px 18px 9px;
  }

  .hero,
  .section {
    padding-inline: 24px;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 150px;
  }

  .hero-photo {
    top: auto;
    right: -3%;
    bottom: 0;
    width: min(520px, calc((100dvh - 78px) * 0.872));
    height: min(596px, calc(100% - 78px));
    aspect-ratio: auto;
    opacity: 0.85;
  }

  .hero-inner,
  .hero-bottom,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-role {
    min-width: 0;
    text-align: left;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr) minmax(132px, max-content);
    gap: 18px;
    min-height: auto;
    padding: 32px 0 36px;
    align-items: start;
  }

  .timeline-meta {
    grid-column: 2;
    grid-row: 1;
    align-items: flex-end;
    gap: 6px;
    padding-top: 4px;
    text-align: right;
  }

  .timeline-content {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline-dot {
    display: none;
  }

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

  .education article {
    min-height: auto;
  }

  .skills-grid article {
    padding: 23px 24px 36px;
    border-right: 0;
    border-bottom: 1px solid rgba(214, 252, 53, 0.55);
  }

  .skills-grid article:last-child {
    border-bottom: 0;
  }

  .project-grid {
    border: 0;
  }

  .project-actions {
    justify-content: flex-start;
    margin: -16px 0 28px;
  }

  .project-card {
    min-height: 224px;
  }

  .contact-links {
    gap: 11px 48px;
  }

  .contact-links a {
    width: calc((100% - 48px) / 2);
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(46px, 14vw, 56px);
    line-height: 1.22;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 150px;
  }

  .hero-photo {
    top: auto;
    right: -24%;
    bottom: 0;
    width: min(270px, calc((100dvh - 78px) * 0.872));
    height: min(309px, calc(100% - 78px));
    opacity: 0.44;
  }

  .contact-title {
    max-width: 100%;
    line-height: 1.05;
    letter-spacing: -2px;
  }

  .contact-title-work {
    font-size: clamp(44px, 12.2vw, 56px);
    line-height: 1.05;
  }

  .contact-title-together,
  .contact-title b {
    font-size: clamp(54px, 15.5vw, 72px);
    line-height: 1.05;
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 36px;
  }

  .section-heading h2 {
    font-size: 30px;
    line-height: 1.4;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr) minmax(132px, max-content);
    gap: 18px;
    min-height: auto;
    padding: 32px 0 36px;
    align-items: start;
  }

  .timeline-meta strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.8px;
  }

  .timeline-meta em {
    font-size: 11.5px;
    line-height: 18px;
    letter-spacing: 0.7px;
  }

  .eyebrow {
    font-size: 11.5px;
    line-height: 18px;
    letter-spacing: 1.45px;
  }

  .timeline-content li {
    font-size: 12.5px;
    font-weight: 300;
    line-height: 19px;
  }

  .timeline-meta {
    grid-column: 2;
    grid-row: 1;
    align-items: flex-end;
    gap: 6px;
    padding-top: 4px;
    text-align: right;
  }

  .timeline-content {
    grid-column: 1;
    grid-row: 1;
  }

  .education strong {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-dot {
    display: none;
  }

  .skills-grid article {
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(214, 252, 53, 0.55);
  }

  .skills-grid article:last-child {
    border-bottom: 0;
  }

  .project-grid {
    border: 0;
  }

  .project-card {
    padding-inline: 24px;
  }

  .contact-links a {
    width: 100%;
    overflow-wrap: anywhere;
  }
}
