@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('assets/fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('assets/fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --paper: #1d2025; --ink: #f5f6f8; --secondary: #b5bbc6; --surface: #252930;
  --blue: #2d5ce8; --blue-ink: #fff; --dark: #17191e; --dark-ink: #f5f6f8;
  --photo-ground: #303641; --photo-secondary: #343d4d; --photo-last: #293344;
  --small: 14px; --body: 16px; --lead: 24px; --heading: clamp(36px, 4.4vw, 64px);
  --display: clamp(76px, 11.4vw, 164px); --gutter: 32px; --section: 112px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Golos Text', sans-serif; font-size: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
::selection { color: var(--paper); background: var(--ink); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1,h2,h3,h4,p { margin: 0; }
h1,h2,h3,h4 { text-wrap: balance; }
p { text-wrap: pretty; }
h2 { font-size: var(--heading); font-weight: 550; line-height: 1.1; letter-spacing: -.04em; }
h3,h4 { font-size: var(--lead); font-weight: 550; line-height: 1.25; letter-spacing: -.035em; }
.page-width { width: min(100%, 1440px); margin-inline: auto; padding-inline: var(--gutter); }
.section-space { padding-block: var(--section); }
.opening { color: var(--ink); background: var(--paper); }
.site-header { min-height: 100px; display: flex; gap: 32px; align-items: center; }
.wordmark { font-size: var(--body); font-weight: 550; letter-spacing: -.04em; margin-right: auto; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: var(--small); }
.site-header nav a, .header-contact { padding-block: 12px; }
.site-header a:hover { text-decoration: underline; text-underline-offset: 6px; }
.header-contact { font-size: var(--small); margin-left: 32px; }
.cv-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid #ffffff50; border-radius: 100px; font-size: var(--small); white-space: nowrap; transition: background .2s; }
.cv-button:hover { background: #ffffff12; }
.contact-socials { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact-bottom > .phone { align-self: flex-start; }
.hero { padding-top: 38px; padding-bottom: 32px; }
h1 { font-size: var(--display); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.hero-bottom { margin-top: 42px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.hero-role { font-size: var(--lead); font-weight: 500; letter-spacing: -.03em; margin-bottom: 12px; }
.hero-description { max-width: 610px; }
.button { display: inline-flex; gap: 50px; justify-content: space-between; align-items: center; min-height: 56px; padding: 15px 24px; border-radius: 100px; font-size: var(--body); font-weight: 500; white-space: nowrap; transition: transform .2s; }
.button-light { color: var(--blue-ink); background: var(--blue); }
.button:hover { transform: translateY(-3px); }
.button:active { transform: scale(.97); }
.hero-footer { margin-top: 58px; display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: var(--small); }
.social-links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.social-links a { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; font-size: var(--small); transition: transform .2s; }
.social-links a:hover { transform: translateY(-2px); text-decoration: underline; text-underline-offset: 5px; }
.social-links img { width: 19px; height: 19px; }
.opening .social-links img, .contact .social-links img { filter: invert(1); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
.section-heading > p { flex-shrink: 0; max-width: 34ch; }
.experience { background: var(--surface); }
.job-panel { padding: 36px; background: var(--paper); }
.job-panel + .job-panel { margin-top: 32px; }
.job-heading { display: grid; grid-template-columns: 220px minmax(0, 1fr) 230px; gap: 40px; align-items: start; margin-bottom: 56px; }
.job-brand p { margin-top: 10px; font-size: var(--small); color: var(--secondary); }
.cloud-logo { width: 48px; height: 48px; object-fit: contain; }
.sber-brand { display: flex; align-items: center; gap: 12px; font-size: var(--lead); font-weight: 600; }
.job-heading h3 { margin: 0 0 10px; }
.job-heading > div > p, .job-date { font-size: var(--small); }
.job-date { color: var(--secondary); text-align: right; }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.case:first-child { grid-column: 1/-1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; padding-bottom: 12px; }
.case h4 { margin-bottom: 16px; }
.case-copy p { max-width: 65ch; }
.case-result { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.case-result strong { font-size: var(--heading); font-weight: 500; line-height: 1.1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.case-result span { font-size: var(--small); max-width: 35ch; }
.case:first-child .case-result { padding: 32px; margin: 0; background: var(--surface); min-height: 210px; justify-content: center; }
.case:first-child .case-result strong { font-size: clamp(32px, 3.3vw, 48px); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-preview { aspect-ratio: 16/10; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; }
.project-preview p { font-size: var(--lead); letter-spacing: -.04em; }
.project-preview span { font-size: var(--small); color: var(--secondary); }
.project-caption { margin-top: 24px; }
.project-caption p { margin-top: 8px; font-size: var(--small); color: var(--secondary); }
.skills { color: var(--dark-ink); background: var(--dark); }
.skills-layout { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 64px; }
.skill-group h3 { margin-bottom: 24px; }
.skill-group ul { padding: 0; margin: 0; list-style: none; }
.skill-group li { margin-top: 12px; }
.education { display: grid; grid-template-columns: .85fr 1fr .78fr; gap: 48px; align-items: center; }
.education-intro h2 { margin-bottom: 40px; }
.msu-logo { filter: invert(1); mix-blend-mode: screen; margin-bottom: 24px; object-fit: contain; object-position: left; }
.education-intro h3 { margin-bottom: 12px; }
.education-intro > p { color: var(--secondary); }
.education-records { padding-top: 12px; display: grid; gap: 48px; align-content: center; }
.education-records h3 { margin: 12px 0; max-width: 30ch; }
.education-records article > p:last-child { color: var(--secondary); }
.study-date { font-size: var(--small); }
.outside { background: var(--surface); }
.contact { color: var(--dark-ink); background: var(--dark); }
.contact-email { display: block; width: fit-content; font-size: clamp(32px, 5.6vw, 80px); font-weight: 500; letter-spacing: -.055em; line-height: 1.1; margin-block: 72px; }
.contact-email:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; }
.contact-bottom { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.phone { padding-block: 12px; font-size: var(--small); }
.site-footer { padding-block: 26px; display: flex; justify-content: space-between; gap: 24px; font-size: var(--small); }
.site-footer a:hover { text-decoration: underline; }
.skip-link { position: fixed; top: -120px; left: 20px; z-index: 10; background: var(--paper); color: var(--ink); padding: 16px 24px; }
.skip-link:focus { top: 20px; }
@media (min-width: 1600px) { .hero { padding-top: 60px; } }
@media (max-width: 1050px) {
  :root { --gutter: 24px; --section: 88px; }
  .site-header { flex-wrap: wrap; gap: 12px 24px; padding-block: 24px; }
  .site-header nav { gap: 20px; order: 3; width: 100%; }
  .header-contact { margin-left: 0; }
  .hero { padding-top: 24px; }
  .hero-description { max-width: 44ch; }
  .button { gap: 24px; }
  .hero-footer { align-items: flex-start; }
  .hero-footer > p { max-width: 25ch; }
  .section-heading { align-items: flex-start; gap: 32px; }
  .section-heading > p { max-width: 25ch; }
  .job-heading { grid-template-columns: 180px 1fr; gap: 24px; }
  .job-date { grid-column: 2; text-align: left; margin-top: -12px; }
  .job-panel { padding: 28px; }
  .case:first-child { grid-template-columns: 1fr; gap: 24px; }
  .case:first-child .case-result { min-height: 0; }
  .cases { gap: 40px 32px; }
  .skills-layout { gap: 32px; }
  .education { grid-template-columns: .9fr 1fr; gap: 40px; }
  .education-photo { grid-column: 1 / -1; width: min(100%, 520px); justify-self: center; }
}
@media (max-width: 650px) {
  :root { --gutter: 20px; --section: 64px; --body: 16px; --lead: 22px; --heading: 36px; --display: clamp(64px, 18vw, 112px); }
  .site-header { padding-block: 18px; gap: 10px; }
  .wordmark { font-size: var(--small); }
  .site-header nav { justify-content: flex-start; flex-wrap: wrap; gap: 0 18px; font-size: 13px; }
  .hero { padding-top: 30px; }
  .hero-bottom { display: block; margin-top: 32px; }
  .hero-role { margin-bottom: 16px; }
  .hero-description { max-width: 38ch; }
  .hero .button { margin-top: 28px; }
  .hero-footer { margin-top: 36px; display: block; }
  .hero-footer > p { max-width: none; margin-bottom: 16px; }
  .social-links { gap: 20px; }
  .social-links a { gap: 7px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading > p { margin-top: 20px; max-width: none; }
  .section-heading > p br { display: none; }
  .job-panel { padding: 24px 20px; margin-inline: -4px; }
  .job-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .job-date { grid-column: auto; margin-top: -12px; }
  .cases { grid-template-columns: 1fr; gap: 40px; }
  .case:first-child { display: block; padding: 0; }
  .case:first-child .case-result { margin-top: 24px; padding: 24px 20px; }
  .case:first-child .case-result strong { font-size: 30px; }
  .case-result strong { font-size: 36px; }
  .project-grid { grid-template-columns: 1fr; gap: 36px; }
  .project-caption { margin-top: 20px; }
  .skills-layout { grid-template-columns: 1fr; gap: 36px; }
  .skill-group h3 { margin-bottom: 16px; }
  .skill-group ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .skill-group li { margin: 0; }
  .education { grid-template-columns: 1fr; gap: 40px; }
  .education-photo { grid-column: auto; width: 100%; }
  .education-intro h2 { margin-bottom: 32px; }
  .education-records { padding-top: 0; gap: 32px; }
  .contact-email { font-size: clamp(28px, 7.7vw, 46px); margin-block: 40px; overflow-wrap: anywhere; }
  .contact-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .site-footer { font-size: 13px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .site-header nav { gap: 6px; font-size: 13px; }
  .social-links { gap: 16px; }
  .case:first-child .case-result strong { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}
@media print {
  body { font-size: 11pt; }
  .opening,.skills,.contact { background: white; color: black; }
  .site-header,.button,.hero-footer,.projects,.outside,.site-footer { display: none !important; }
  .job-panel[hidden] { display: block !important; }
  .section-space { padding-block: 20px; }
  h1 { font-size: 44pt; }
  h2 { font-size: 24pt; }
  .hero { padding-block: 0; }
  .job-panel { padding: 20px 0; }
  .case { break-inside: avoid; }
  .contact-email { font-size: 22pt; margin-block: 20px; }
  .contact .social-links img { filter: none; }
}

@keyframes enter-section { from { opacity: .35; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.arriving { animation: enter-section 520ms cubic-bezier(.22,1,.36,1) both; }
@media (prefers-reduced-motion: reduce) { .arriving { animation: none; } }

/* Portrait and project media share the existing typographic grid. */
.hero-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: end; }
.hero-copy { padding-bottom: 24px; }
.hero h1 { font-size: clamp(72px, 8.3vw, 120px); }
.hero-bottom { display: block; margin-top: 32px; }
.hero .button { margin-top: 28px; }
.hero-description { max-width: 58ch; }
.hero-footer { margin-top: 28px; }
.project-preview { overflow: hidden; padding: 0; }
.project-preview:has(img) { background: #fff; }
.project-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.project-preview > p { padding-inline: 24px; text-align: center; }
.project-caption > p { color: var(--ink); font-size: var(--body); line-height: 1.6; max-width: 60ch; }
.project-repository { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: var(--small); margin-top: 16px; }
.project-repository img { filter: invert(1); }
.project-repository:hover { text-decoration: underline; text-underline-offset: 6px; }
.education-photo { margin: 0; }
.education-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: center; }
.education-photo figcaption { margin-top: 14px; font-size: var(--small); color: var(--secondary); }
.sports-carousel { --slide-width: min(48%, 600px); }
.carousel-track { display: flex; overflow-x: auto; gap: 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--secondary) var(--surface); padding-bottom: 16px; }
.carousel-track:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.sports-slide { flex: 0 0 var(--slide-width); margin: 0; min-width: 0; scroll-snap-align: start; }
.sports-slide img { width: 100%; aspect-ratio: 4/5; object-fit: contain; background: var(--paper); }
.sports-slide figcaption { margin-top: 16px; font-size: var(--body); }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.carousel-status { font-variant-numeric: tabular-nums; font-size: var(--small); }
.carousel-buttons { display: flex; gap: 12px; }
.carousel-buttons button { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); transition: transform .2s; }
.carousel-buttons button:hover:not(:disabled) { transform: translateY(-2px); }
.carousel-buttons button:disabled { opacity: .3; cursor: default; }
@media (max-width: 1050px) {
  .hero-main { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; }
  .hero h1 { font-size: clamp(64px, 8.3vw, 90px); }
}
@media (max-width: 650px) {
  .hero-main { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: clamp(64px, 18vw, 112px); }
  .hero-copy { padding-bottom: 0; }
  .sports-carousel { --slide-width: 88%; }
  .carousel-track { gap: 16px; }
  .project-preview { aspect-ratio: 16/10; }
}
@media (prefers-reduced-motion: reduce) { .carousel-buttons button { transition: none; } }

/* Personal card, hardware previews and an open editorial work history. */
.hero-main { align-items: center; gap: 64px; }
.profile-card { width: 100%; max-width: 430px; justify-self: end; border: 1px solid #d9dcea; border-radius: 24px; overflow: hidden; background: #f3f3f9; color: #171b2b; }
.profile-brand { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px 12px; background: #306bfa; color: white; font-size: 19px; font-weight: 600; letter-spacing: -.04em; }
.profile-brand img { width: 40px; height: 40px; }
.profile-body { padding: 32px 24px; text-align: center; }
.profile-photo { width: 100%; height: auto; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: center 30%; border-radius: 18px; margin: 0 auto 24px; border: 3px solid #d9e1f6; }
.profile-body h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.04em; }
.profile-body > p { margin-top: 12px; color: #626675; font-size: 20px; }
.project-preview, .project-preview:has(img) { background: transparent; overflow: visible; padding: 24px 0 10px; display: block; aspect-ratio: auto; }
.laptop-screen { position: relative; margin-inline: 6%; padding: 12px 10px 17px; border: 1px solid #777b84; border-radius: 15px 15px 3px 3px; background: #101114; box-shadow: 0 20px 35px #0003; }
.laptop-screen::before { content: ''; position: absolute; top: 4px; left: 50%; width: 4px; height: 4px; background: #414651; border-radius: 50%; }
.laptop-screen img { aspect-ratio: 16/10; height: auto; object-fit: cover; border-radius: 3px; }
.laptop-base { position: relative; height: 15px; background: linear-gradient(#d7d9de, #8e929b 55%, #555962); border-radius: 2px 2px 50% 50% / 2px 2px 90% 90%; box-shadow: 0 14px 20px #0004; }
.laptop-base::before { content: ''; position: absolute; top: 0; left: 42%; width: 16%; height: 5px; background: #777c86; border-radius: 0 0 6px 6px; }
.experience { background: #202328; }
.job-panel { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 70px; padding: 44px 0; background: transparent; border-top: 1px solid #ffffff26; }
.job-panel + .job-panel { margin-top: 0; }
.job-panel:last-child { padding-bottom: 0; }
.job-heading { display: flex; flex-direction: column; gap: 24px; margin: 0; }
.job-heading h3 { font-size: 20px; }
.job-heading > div > p { color: var(--secondary); }
.job-date { text-align: left; font-size: 13px; margin: 0; }
.cloud-logo { width: 36px; height: 36px; }
.job-brand .sber-brand { font-size: 22px; }
.cases { display: block; }
.case, .case:first-child { display: grid; grid-template-columns: minmax(0, 1fr) 185px; align-items: start; gap: 32px; padding: 0 0 28px; }
.case + .case { padding-top: 28px; border-top: 1px solid #ffffff14; }
.case:last-child { padding-bottom: 0; }
.case:not(:has(.case-result)) { grid-template-columns: 1fr; }
.case h4 { font-size: 21px; margin-bottom: 10px; letter-spacing: -.025em; }
.case-copy p { color: var(--secondary); font-size: 16px; line-height: 1.65; }
.case-result, .case:first-child .case-result { padding: 0; margin: 0; min-height: 0; background: none; gap: 9px; }
.case-result strong, .case:first-child .case-result strong { font-size: 27px; letter-spacing: -.04em; font-weight: 550; }
.case-result span { color: var(--secondary); font-size: 14px; line-height: 1.5; }
.carousel-track { align-items: stretch; }
.sports-slide img { height: clamp(300px, 36vw, 480px); aspect-ratio: auto; object-fit: cover; border-radius: 8px; }
.sports-slide[data-photo="snowboarding"] img { object-position: center 60%; }
.sports-slide[data-photo="running-night"] img { object-position: center 60%; }
.contact-float { position: fixed; z-index: 20; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 20px; width: max-content; max-width: calc(100% - 24px); padding: 14px 18px 14px 26px; border-radius: 100px; background: #2863ed; color: white; box-shadow: 0 12px 48px #0005; }
.contact-float > span { font-size: 18px; font-weight: 550; }
.contact-float a { display: flex; align-items: center; gap: 9px; border: 1px solid #ffffff60; padding: 12px 18px; border-radius: 100px; font-size: 15px; }
.contact-float a:hover { background: #ffffff18; }
.contact-float img { filter: invert(1); }
.contact-float button { border: 0; background: transparent; color: white; width: 32px; height: 44px; font-size: 25px; }
@media (max-width: 1050px) {
  .hero-main { gap: 32px; }
  .profile-brand { font-size: 15px; gap: 5px; }
  .job-panel { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
  .case, .case:first-child { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 650px) {
  .profile-card { justify-self: center; margin-top: 12px; }
  .profile-brand { font-size: 18px; }
  .profile-body { padding: 28px 18px; }
  .profile-body h2 { font-size: 26px; }
  .job-panel { grid-template-columns: 1fr; gap: 32px; margin-inline: 0; padding: 32px 0; }
  .job-heading { gap: 16px; }
  .case:first-child .case-result { margin: 0; padding: 0; }
  .sports-slide img { height: 360px; }
  .contact-float { gap: 8px; padding: 10px 10px 10px 16px; }
  .contact-float > span { font-size: 13px; max-width: 90px; line-height: 1.3; }
  .contact-float a { padding: 11px; font-size: 12px; gap: 6px; }
  .contact-float button { width: 24px; }
}
@media print { .contact-float { display: none; } }
.site-footer { padding-bottom: 124px; }

/* Match the reference's balanced, compact first-screen composition. */
.hero-main { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(48px, 8vw, 120px); }
.hero-copy { padding-bottom: 0; }
.hero h1 { font-size: clamp(72px, 8.3vw, 120px); }
.hero-description { max-width: 52ch; font-size: 16px; }
.profile-card { max-width: 480px; }
.profile-brand { padding-block: 24px; gap: 10px; }
.profile-body { padding: 38px 28px 40px; }
.profile-photo { width: 62%; aspect-ratio: 1 / 1.08; margin-bottom: 28px; }
.hero-footer { margin-top: 36px; }
@media (max-width: 1050px) and (min-width: 651px) {
  .hero-main { gap: 40px; }
  .hero h1 { font-size: clamp(60px, 8.3vw, 87px); }
  .profile-body { padding: 28px 16px; }
  .profile-body h2 { font-size: 24px; }
  .profile-photo { width: 70%; }
}

/* Shared layout rules from the responsive design audit. */
:root { --blue: #2863ed; --dock-height: 96px; }
.enhanced-layout { overflow: hidden; }
.enhanced-layout .page-scroll { height: 100vh; height: 100dvh; overflow: auto; scroll-behavior: smooth; scroll-padding-block: 24px; scrollbar-gutter: stable; }
.enhanced-layout.contact-visible .page-scroll { height: calc(100vh - var(--dock-height) - env(safe-area-inset-bottom)); height: calc(100dvh - var(--dock-height) - env(safe-area-inset-bottom)); }
.contact-float { bottom: 0; left: 0; transform: none; width: 100%; max-width: none; height: calc(var(--dock-height) + env(safe-area-inset-bottom)); padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-radius: 0; background: var(--dark); box-shadow: none; border-top: 1px solid #ffffff20; justify-content: center; }
.contact-float a { background: var(--blue); border-color: transparent; font-size: 14px; min-height: 48px; }
.contact-float a:hover { background: #1e53ce; }
.contact-float > span { font-size: 16px; }
.site-footer { padding-bottom: 26px; }
.hero h1 { font-size: clamp(48px, 8.3vw, 120px); }
.job-date, .study-date { font-size: 14px; }
.case-result strong, .case:first-child .case-result strong { white-space: nowrap; }
.case:not(:has(.case-result)) { grid-template-columns: minmax(0, 1fr) 185px; }
.case h4 { max-width: 46ch; }
.metric-period { color: var(--ink); }
.pet-project { display: flex; flex-direction: column; min-width: 0; }
.project-caption { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.project-caption > p { margin-bottom: 16px; }
.project-repository { margin-top: auto; }
.education { align-items: start; row-gap: 40px; }
.education > h2 { grid-column: 1 / -1; }
.education-records { padding-top: 0; gap: 32px; }
.education-photo img { border-radius: 8px; }
.skill-group ul { display: grid; gap: 12px; }
.skill-group li { margin: 0; }
.contact-email { letter-spacing: -.035em; }
.sports-slide[data-photo="running"] img { object-position: 50% 35%; }
.sports-slide[data-photo="rowing"] img { object-position: 58% 50%; }
.sports-slide[data-photo="team-msu"] img { object-position: 50% 40%; }
.menu-toggle { display: none; }
.preview-dialog { width: min(1200px, 94vw); max-width: 94vw; max-height: 90dvh; overflow: auto; padding: 20px; border: 1px solid #ffffff30; border-radius: 16px; color: var(--ink); background: var(--paper); }
.preview-dialog::backdrop { background: #090c12dd; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.preview-toolbar h2 { font-size: 20px; letter-spacing: -.02em; }
.preview-close { min-height: 44px; padding: 10px 16px; border: 1px solid #ffffff40; border-radius: 30px; background: transparent; color: inherit; white-space: nowrap; }
.preview-dialog > img { width: 100%; height: auto; }
@media (min-width: 651px) and (max-width: 1050px) {
  .education { grid-template-columns: 1fr 1fr; }
  .education-photo { grid-column: 2; grid-row: 2 / span 2; width: min(100%, 320px); justify-self: end; }
  .education-records { grid-column: 1; }
}
@media (max-width: 1050px) {
  .case:not(:has(.case-result)) { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  :root { --dock-height: 76px; }
  .site-header { gap: 8px 12px; min-height: 72px; padding-block: 12px; }
  .site-header .wordmark { font-size: 14px; min-height: 44px; display: flex; align-items: center; }
  .menu-toggle:not([hidden]) { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px; border: 0; color: var(--ink); background: transparent; font-size: 14px; }
  .site-header > .cv-button { padding-inline: 14px; }
  .enhanced-layout .site-header nav, .enhanced-layout .site-header > .header-contact { display: none; }
  .enhanced-layout .site-header.menu-open nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; width: 100%; order: 4; padding-top: 12px; border-top: 1px solid #ffffff20; font-size: 14px; }
  .enhanced-layout .site-header.menu-open > .header-contact { display: block; order: 5; width: 100%; font-size: 14px; }
  .site-header nav a { min-height: 44px; }
  .hero { padding-top: 24px; }
  .hero-main { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: clamp(48px, 8.3vw, 120px); }
  .hero-bottom { margin-top: 20px; }
  .hero-role { margin-bottom: 12px; }
  .hero .button { margin-top: 20px; }
  .profile-card { max-width: 390px; margin-top: 0; }
  .profile-brand { padding-block: 12px; font-size: 16px; }
  .profile-brand img { width: 30px; height: 30px; }
  .profile-body { display: grid; grid-template-columns: minmax(100px, .9fr) minmax(0, 1fr); column-gap: 16px; padding: 20px 16px; text-align: left; align-items: center; }
  .profile-photo { grid-row: 1 / 3; width: 100%; margin: 0; border-radius: 10px; }
  .profile-body h2 { font-size: 20px; align-self: end; line-height: 1.2; }
  .profile-body > p { font-size: 16px; align-self: start; margin-top: 8px; }
  .hero-footer { margin-top: 24px; }
  .education { row-gap: 28px; }
  .education-photo { width: min(100%, 320px); justify-self: start; }
  .contact-float { gap: 12px; padding-inline: 12px; }
  .contact-float > span { max-width: 110px; font-size: 14px; }
  .contact-float a { padding-inline: 12px; font-size: 14px; }
  .preview-dialog { padding: 14px; }
  .preview-toolbar { flex-wrap: wrap; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .enhanced-layout .page-scroll { scroll-behavior: auto; } }
@media print { .enhanced-layout { overflow: visible; } .enhanced-layout .page-scroll { height: auto !important; overflow: visible; } }
@media (max-width: 360px) {
  .site-header { gap: 4px; }
  .site-header .wordmark { font-size: 13px; }
  .menu-toggle:not([hidden]) { padding-inline: 4px; gap: 3px; }
  .site-header > .cv-button { padding-inline: 10px; }
  .contact-float { gap: 8px; padding-inline: 8px; }
  .contact-float a { padding-inline: 10px; }
}
