\documentclass[10pt,letterpaper]{article}

% ============================================================
% EXPERT CV DESIGN
% Professional designer's approach: intentional, confident, precise
% ============================================================

% DESIGN DECISIONS:
% 1. Remove "summary" - everyone has one, wastes space
% 2. Lead with experience - that's what matters
% 3. Skills in sidebar - scannable, doesn't interrupt narrative
% 4. Typography: EB Garamond (elegant, readable) + Inter (modern, clear)
% 5. Layout: Asymmetric (2/3 main, 1/3 sidebar) - visual interest
% 6. Spacing: 12pt baseline grid - mathematical consistency

% Core packages
\usepackage[top=0.6in, bottom=0.6in, left=0.6in, right=0.6in]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{enumitem}
\usepackage{hyperref}
\usepackage{xcolor}
\usepackage{titlesec}
\usepackage{microtype}
\usepackage{ragged2e}  % Better ragged-right
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{multicol}

% ============================================================
% TYPOGRAPHY - Carefully chosen pairing
% ============================================================

% Body: Palatino (elegant, highly legible, standard LaTeX)
\usepackage{palatino}
% Headings: Helvetica (clean, professional, excellent pairing)
\usepackage[scaled=0.95]{helvet}

% Microtypography
\microtypesetup{
    tracking=true,
    kerning=true,
    spacing=true
}

% ============================================================
% COLOR SYSTEM - Functional, not decorative
% ============================================================

\definecolor{TextBlack}{HTML}{0d0d0d}       % Body text (softer than #000)
\definecolor{HeadingNavy}{HTML}{0a2540}     % Headings (authoritative)
\definecolor{MetaGray}{HTML}{52525b}        % Dates, locations (recessive)
\definecolor{AccentBlue}{HTML}{0066cc}      % Links only (functional)
\definecolor{RuleGray}{HTML}{d1d5db}        % Separators (subtle)

% ============================================================
% PAGE SETUP - 12pt baseline grid
% ============================================================

\pagestyle{empty}
\setlength{\parindent}{0pt}
\setlength{\parskip}{0pt}

% 12pt baseline grid
\linespread{1.15}  % 10pt * 1.15 = 11.5pt ≈ 12pt leading

% ============================================================
% LIST FORMATTING - Tight, intentional
% ============================================================

\setlist[itemize]{
    leftmargin=0.9em,
    itemsep=0pt,
    parsep=0pt,
    topsep=4pt,
    label={\textcolor{MetaGray}{\tiny$\blacksquare$}}
}

% ============================================================
% SECTION FORMATTING - Strong hierarchy
% ============================================================

% Major sections - strong, unmistakable
\titleformat{\section}
    {\normalsize\sffamily\bfseries\color{HeadingNavy}}
    {}{0em}
    {\MakeUppercase}
    [\vspace{1pt}{\color{RuleGray}\titlerule[1pt]}\vspace{6pt}]

\titlespacing*{\section}{0pt}{12pt}{0pt}

% Job titles - clear but not competing with sections
\titleformat{\subsection}
    {\normalsize\bfseries\color{TextBlack}}
    {}{0em}
    {}

\titlespacing*{\subsection}{0pt}{8pt}{2pt}

% ============================================================
% HYPERLINKS - Subtle, professional
% ============================================================

\hypersetup{
    colorlinks=true,
    linkcolor=AccentBlue,
    urlcolor=AccentBlue,
    pdfborder={0 0 0},
}

% ============================================================
% CUSTOM COMMANDS - Semantic, consistent
% ============================================================

% Company + location line - removed \textsc (causes spacing issues)
\newcommand{\company}[2]{%
    {\small\color{MetaGray}\textbf{#1} \textcolor{RuleGray}{·} \textit{#2}}%
}

% Date range (right-aligned)
\newcommand{\daterange}[1]{%
    {\small\color{MetaGray}#1}%
}

% Skill group heading - simple, no uppercase transformation
\newcommand{\skillgroup}[1]{%
    {\small\sffamily\bfseries\color{HeadingNavy}#1}\\[3pt]%
}

% ============================================================
% BEGIN DOCUMENT
% ============================================================

\begin{document}

% ============================================================
% HEADER - Confident, clear hierarchy
% ============================================================

\noindent
\begin{minipage}[t]{0.65\textwidth}
    % Name - strong, no hedging
    {\LARGE\bfseries\color{HeadingNavy}PAVEL VASILYEV}\\[3pt]
    % Title - immediate context
    {\large\color{TextBlack}LLM Engineer / AI Infrastructure Specialist}
\end{minipage}%
\hfill%
\begin{minipage}[t]{0.33\textwidth}
    \raggedleft
    {\footnotesize\color{MetaGray}
        Jerusalem, Israel\\
        \href{mailto:marchdown@gmail.com}{marchdown@gmail.com}\\
        +972-54-343-1123\\
        \href{https://github.com/marchdown}{marchdown} · %
        \href{https://linkedin.com/in/pavel--vasilyev}{pavel--vasilyev}
    }
\end{minipage}

\vspace{12pt}

% ============================================================
% CORE VALUE PROPOSITION - Not "summary", actual value
% ============================================================

{\small\color{TextBlack}
Built production LLM systems for therapeutic chatbots, including prompt engineering, safety guardrails, and RAG pipelines using GPT-3.5/4 and Claude. Previously developed ML/NLP systems across fintech, healthcare, and quantitative research for over a decade.

Work primarily in Python with strong functional programming background (Clojure, Elixir). MSc Computational Linguistics, BSc Nuclear Physics.}

\vspace{12pt}

% ============================================================
% EXPERIENCE - Lead with what matters
% ============================================================

\section*{Professional Experience}

\subsection*{Independent Consultant \hfill \daterange{Mar 2024 – Dec 2024}}

\company{Various Clients}{Remote}

\vspace{3pt}
\begin{itemize}
\item {\small\color{TextBlack}\textbf{LevEhat NGO (CTO, 5 months):} Led cloud migration from GCP to AWS, coordinated team of 5 for volunteer management platform}
\item {\small\color{TextBlack}\textbf{Fintilligence (Technical Lead, 4 months):} Built market microstructure analytics platform with PIN/VPIN algorithms and Level 2 data pipelines}
\item {\small\color{TextBlack}\textbf{General consulting:} Time-series forecasting models, NLP classification systems, infrastructure architecture}
\end{itemize}
\vspace{6pt}

\subsection*{AI Architect \hfill \daterange{Jan 2023 – Dec 2023}}

\company{Stamina AI}{Remote}

\vspace{3pt}
\begin{itemize}
\item {\small\color{TextBlack}Built complete LLM pipeline: prompt engineering, context management, response generation, safety guardrails}
\item {\small\color{TextBlack}Integrated OpenAI GPT-3.5/4 APIs with custom safety layers and content filtering}
\item {\small\color{TextBlack}Designed conversation state management and session handling for therapeutic context}
\end{itemize}
\vspace{6pt}

\subsection*{Independent Consultant \hfill \daterange{2022 – 2023}}

\company{Various Clients}{Remote}

\vspace{3pt}
\begin{itemize}
\item {\small\color{TextBlack}Projects: time-series forecasting, text classification, data pipeline optimization}
\end{itemize}
\vspace{6pt}

\subsection*{Senior Researcher \hfill \daterange{2020 – 2021}}

\company{Spring Research}{Remote}

\vspace{3pt}
\begin{itemize}
\item {\small\color{TextBlack}Developed ML models for trading signal generation using time-series analysis and statistical methods}
\item {\small\color{TextBlack}Built data pipelines processing Level 2 market data (tick-by-tick, order book, market depth)}
\item {\small\color{TextBlack}Researched topology-inspired approaches to market microstructure modeling}
\end{itemize}
\vspace{6pt}

\subsection*{Data Scientist \hfill \daterange{2019}}

\company{Nestlogic}{Remote}

\vspace{3pt}
\begin{itemize}
\item {\small\color{TextBlack}Built computer vision models for advertising creative optimization (image feature extraction)}
\item {\small\color{TextBlack}Implemented A/B testing infrastructure using statistical hypothesis testing (t-tests, chi-square)}
\item {\small\color{TextBlack}Deployed ML models to production on Google Cloud Platform with Kubernetes}
\end{itemize}
\vspace{6pt}

% ============================================================
% TECHNICAL EXPERTISE - Scannable, ATS-friendly
% ============================================================

\section*{Technical Expertise}

\skillgroup{LLM Engineering · 3 years production}

{\small\color{TextBlack}OpenAI GPT-3.5/4, Anthropic Claude}

\vspace{2pt}
{\small\color{TextBlack}prompt engineering, RAG pipelines, context management, safety guardrails, content filtering}

\vspace{2pt}
{\small\color{TextBlack}production deployment, latency optimization, monitoring, cost optimization}

\vspace{2pt}
{\small\color{TextBlack}therapeutic chatbots, conversational AI, safety systems}

\vspace{2pt}
\vspace{4pt}

\skillgroup{Programming}

{\small\color{TextBlack}Python (10+ years production) · Clojure (10+ years) · Rust (5+ years) · Go (3+ years) · Elixir (2+ years) · Java, R, SQL (advanced), bash}

\vspace{4pt}

\skillgroup{ML/AI}

{\small\color{TextBlack}Frameworks: PyTorch, TensorFlow, Keras, scikit-learn, XGBoost, LightGBM, CatBoost · NLP: spaCy, NLTK, Hugging Face Transformers · Deep Learning: CNNs, RNNs, LSTMs, GRUs, Transformers, attention mechanisms, transfer learning, fine-tuning}

\vspace{4pt}

\skillgroup{Cloud \& Infrastructure}

{\small\color{TextBlack}AWS: EC2, S3, SageMaker, Lambda · GCP: GCE, GCS, GKE · Containers: Docker, Kubernetes}

\vspace{4pt}

\skillgroup{Databases}

{\small\color{TextBlack}PostgreSQL (expert) · MongoDB, Redis, Neo4j, SQLite, MySQL}

\vspace{4pt}

% ============================================================
% EDUCATION
% ============================================================

\section*{Education}

\subsection*{MSc Computational Linguistics \hfill \daterange{2016}}

\company{Russian State University for the Humanities (RSUH)}{Moscow, Russia}

\vspace{2pt}
{\small\itshape\color{MetaGray}Statistical NLP, Machine Translation, Information Extraction}

\vspace{6pt}

\subsection*{BSc Nuclear Physics \hfill \daterange{2011}}

\company{Czech Technical University}{Prague, Czech Republic}

\vspace{2pt}
{\small\itshape\color{MetaGray}Mathematical Modeling, Statistical Analysis, Computational Physics}

\vspace{6pt}

% ============================================================
% LANGUAGES
% ============================================================

\section*{Languages}

{\small\color{TextBlack}
English (Fluent) · Russian (Native) · French (Conversational) · German (Conversational) · Czech (Conversational) · Hebrew (Basic)}

\end{document}
