:root{--bg:#212121;--fg:#f3f3f3;--muted:#b9b9b9;--gap:32px}*{box-sizing:border-box}html{background:var(--bg);color:var(--fg);font-family:"Acumin Pro","Helvetica Neue",Arial,sans-serif}body{margin:0}a{color:inherit;text-decoration:none}header{display:grid;grid-template-columns:1fr auto;align-items:start;padding:26px 4vw;position:relative;z-index:2}.brand{font-weight:600;font-size:22px}.nav{display:flex;gap:28px;align-items:center;font-size:18px}.nav a[aria-current=page]{font-weight:700}.lang{margin-left:16px;color:var(--muted)}main{width:min(1180px,92vw);margin:70px auto 120px}.hero{min-height:52vh;display:grid;place-content:center;text-align:center}.hero h1{font-family:"Aabak Swash","Acumin Pro","Helvetica Neue",Arial,sans-serif;font-size:75px;font-weight:400;line-height:1;margin:0 0 50px}.hero p{font-size:clamp(20px,2.1vw,30px);line-height:1.45;color:var(--muted);max-width:760px;margin:auto}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px;margin-top:70px}.cover-placeholder{display:block;width:100%;aspect-ratio:1/1;background:#fff}.card h2{font-weight:400;font-size:25px;line-height:1.05;margin:14px 0 5px}.card small{color:var(--muted);font-size:17px}.page-title{text-align:center;font-size:40px;margin:0 0 75px}.copy{max-width:820px;margin:0 auto 80px;font-size:20px;line-height:1.55;color:var(--muted)}.copy p{margin:0 0 24px}.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:start}.gallery figure{margin:0}.gallery figure.wide{grid-column:1/-1}.gallery img{display:block;width:100%;height:auto;object-fit:contain}.gallery figcaption{color:var(--muted);font-size:16px;margin-top:9px}.about{display:grid;grid-template-columns:1fr 1fr;gap:65px;align-items:start}.about img{width:100%;height:auto}.about .copy{margin:0}.contact{text-align:center}.contact-links{display:flex;justify-content:center;gap:24px;margin:40px 0;font-size:22px}.back{display:block;margin:80px 0 0;color:var(--muted)}@media(max-width:520px){header{grid-template-columns:1fr}.nav{margin-top:20px;flex-wrap:wrap;gap:14px 20px}.grid{grid-template-columns:1fr}.gallery,.about{grid-template-columns:1fr}.hero{min-height:40vh}.hero h1{font-size:52px}.page-title{text-align:left;font-size:34px;margin-bottom:45px}main{margin-top:40px}.copy{font-size:18px}}

.name-mark{display:block;width:min(430px,80vw);height:auto;margin:0 auto 44px;overflow:visible}.project-page{width:min(1040px,92vw)}.project-modules{display:flex;flex-direction:column;gap:0}.module-row{display:flex;align-items:flex-start;gap:28px}.module-row>div{min-width:0}.module-single{width:100%}.project-media{margin:0}.project-media img{display:block;width:100%;height:auto}.project-media figcaption{min-height:54px;padding:11px 6px 21px;color:var(--muted);font-size:16px;line-height:1.35;text-align:center}.project-copy{color:var(--muted);font-size:19px;line-height:1.47;padding:0 0 26px}.project-copy p{margin:0 0 18px}.video-placeholder{width:100%;aspect-ratio:16/9;background:#191919}.video-module figcaption{min-height:62px}.project-page .page-title{max-width:720px;margin-left:auto;margin-right:auto}@media(max-width:520px){.name-mark{width:min(360px,86vw);margin-bottom:34px}.name-mark text{font-size:92px}.module-row{display:block}.project-copy{font-size:18px}.project-media figcaption{min-height:0;padding-bottom:24px}}

/* Exact typography and spacing carried over from the Adobe Portfolio desktop layout. */
html{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision}
header{align-items:center}
.brand{display:block;width:164px;height:38px;overflow:visible}
.brand img{display:block;width:100%;height:100%;object-fit:contain;overflow:visible}
.nav{font-size:17px;font-weight:400;line-height:30px}
.nav a[aria-current=page]{font-weight:600}
.hero p{font-size:17px;font-weight:300;line-height:30px;color:#a9a9a9;max-width:610px}
.name-mark{width:min(430px,80vw);overflow:visible}
.card{text-align:center;font-weight:300}
.card h2{min-height:63px;margin:7px auto 0;padding:0 10px 3px;font-size:16px;font-weight:300;line-height:20px;text-align:center;max-width:92%}
.card small{display:block;margin-top:0;color:#a9a9a9;font-size:16px;font-weight:300;line-height:20px;text-align:center}
.project-page .page-title{font-weight:400}
.project-media{padding-bottom:40px}
.project-media figcaption{min-height:0;padding:11px 6px 0;color:#a9a9a9;font-size:16px;font-weight:300;line-height:20px;text-align:center}
.module-row{gap:32px}
.project-copy{padding:20px 0 40px;color:#a9a9a9;font-size:17px;font-weight:300;line-height:30px}
.project-copy p{margin:0 0 18px}
.video-module figcaption{min-height:0}
@media(max-width:520px){.brand{width:145px;height:34px}.project-media{padding-bottom:28px}.module-row{gap:0}.card h2{min-height:0}.hero p{font-size:17px;line-height:28px}}

/* Header placement matching the original portfolio. */
header{position:relative;display:flex;justify-content:flex-end;align-items:center;min-height:82px;padding:22px 4vw}
.brand{position:absolute;left:50%;top:20px;transform:translateX(-50%);width:132px;height:31px}
@media(max-width:760px){header{justify-content:flex-start;padding-top:68px}.brand{top:19px;width:124px;height:29px}.nav{width:100%;justify-content:center}}

/* Original two-level header: dark strip, navigation left, signature centered. */
header{justify-content:flex-start;background:#181818;padding-left:4vw;padding-right:4vw}
.nav{margin-right:auto}
.brand{left:50%}
.resume-copy{max-width:820px;margin:0 auto 80px;color:#a9a9a9;font-size:17px;font-weight:300;line-height:1.55}.resume-copy h2{color:#f2f2f2;font-size:27px;font-weight:400;margin:0}.resume-copy .resume-role{margin-top:4px}.resume-copy h3{color:#f2f2f2;font-size:17px;font-weight:600;margin:42px 0 12px;letter-spacing:.04em}.resume-copy p{margin:0 0 18px}.resume-copy strong{color:#d7d7d7;font-weight:500}

/* Keep the original header alignment in the narrow Codex preview as well. */
header{background:#141414}
@media(max-width:760px){header{justify-content:flex-start;padding-left:28px;padding-right:28px}.nav{width:auto;justify-content:flex-start;align-self:flex-start;margin-right:0;gap:18px;font-size:15px}.brand{left:50%}}

/* Preserve the original single-line header at every preview width. */
@media(max-width:760px){header{min-height:70px;padding:18px 20px;align-items:center;justify-content:flex-start}.nav{width:auto;margin:0;align-self:auto;justify-content:flex-start;gap:10px;font-size:12px;line-height:24px;white-space:nowrap}.lang{margin-left:4px}.brand{top:19px;left:50%;width:104px;height:26px}}

/* Final header alignment: signature and navigation in one left-aligned row. */
header{display:flex;justify-content:flex-start;align-items:center}
.brand{position:static;transform:none;flex:0 0 auto;width:132px;height:31px;margin:0 38px 0 0}
.nav{margin:0}
@media(max-width:760px){header{padding:18px 20px}.brand{position:static;transform:none;width:104px;height:26px;margin-right:24px}.nav{margin:0}}

/* Revert: navigation left, signature centered, both on the same row. */
header{position:relative;display:flex;justify-content:flex-start;align-items:center}
.brand{position:absolute;left:50%;top:20px;transform:translateX(-50%);width:132px;height:31px;margin:0}
.nav{margin:0}
@media(max-width:760px){header{min-height:70px;padding:18px 20px;align-items:center}.brand{position:absolute;left:50%;top:19px;transform:translateX(-50%);width:104px;height:26px;margin:0}.nav{margin:0;justify-content:flex-start}}

/* Signature only: align to the right, keep navigation untouched. */
.brand{left:auto;right:4vw;top:20px;transform:none}
@media(max-width:760px){.brand{left:auto;right:20px;top:19px;transform:none}}

/* Final header: signature left, navigation right, one row. */
header{display:flex;justify-content:flex-end;align-items:center}
.brand{position:absolute;left:4vw;right:auto;top:20px;transform:none;margin:0}
.nav{margin:0 0 0 auto}
@media(max-width:760px){header{padding:18px 20px}.brand{left:20px;right:auto;top:19px;transform:none}.nav{margin:0 0 0 auto;justify-content:flex-end}}

/* Project card labels: titles right, years centered. */
.card h2{max-width:100%;padding-left:10px;padding-right:0;text-align:right}
.card small{text-align:center}

/* Project card labels: titles and years left aligned. */
.card h2{padding-left:0;padding-right:10px;text-align:left}
.card small{text-align:left}

/* Case-study typography and module spacing measured from Adobe Portfolio. */
.project-copy{font-size:14px;line-height:19px;font-weight:300;padding:20px 0 40px}
.project-copy p{margin:0 0 19px}
.project-copy p:last-child{margin-bottom:0}
.project-media{padding-bottom:40px}
.project-media figcaption{font-size:14px;line-height:19px;padding-top:0;margin-top:0}
.module-row{gap:32px;align-items:flex-start}
.module-row>div{flex-basis:0}

/* Breathing room between case images and their captions. */
.project-media figcaption{margin-top:10px}
.project-media figcaption.wrapped{text-align:left}
.font-test{max-width:960px}.font-test>h1{font-size:34px;font-weight:400;margin:0 0 8px}.font-note{color:#9a9a9a;margin:0 0 50px}.font-sample{border-top:1px solid #454545;padding:24px 0 30px}.font-sample h2{font-size:15px;font-weight:500;color:#aaa;margin:0 0 14px}.font-sample p{font-size:24px;line-height:1.45;margin:0 0 13px;color:#f2f2f2}.font-sample small{font-family:"Helvetica Neue",Arial,sans-serif;color:#888;font-size:13px}

/* PT Serif across the whole site. The two signature name marks remain vector artwork. */
html,body,button,input,textarea,select,.font-sample small{font-family:"PT Serif","Times New Roman",serif}
.hero p,.copy,.project-copy,.resume-copy{font-weight:400}

/* Keep the top navigation in the original grotesque. */
.nav{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}

/* Related case studies at the end of every project. */
.related-projects{margin-top:90px;padding-top:46px;border-top:1px solid #3d3d3d}
.related-projects>h2{margin:0 0 30px;font-size:26px;font-weight:400}
.related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.related-grid .card h2{min-height:44px}
@media(max-width:700px){.related-grid{grid-template-columns:1fr}.related-grid .card h2{min-height:0}.related-projects{margin-top:60px}}

/* Adobe Portfolio title-block scroll arrow. */
html{scroll-behavior:smooth}
.hero{position:relative}
.scroll-arrow{position:absolute;left:50%;bottom:18px;width:38px;height:28px;transform:translateX(-50%);display:flex;align-items:flex-start;justify-content:center}
.scroll-arrow span{display:block;width:19px;height:19px;border-right:1px solid #aaa;border-bottom:1px solid #aaa;transform:rotate(45deg);animation:scroll-arrow-motion 2s ease-in-out infinite}
.scroll-arrow:hover span{border-color:#f3f3f3}
#project-grid{scroll-margin-top:30px}
@media(max-width:520px){.scroll-arrow{bottom:10px}.scroll-arrow span{width:17px;height:17px}}
@keyframes scroll-arrow-motion{0%,100%{transform:translateY(0) rotate(45deg);opacity:.55}50%{transform:translateY(9px) rotate(45deg);opacity:1}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.scroll-arrow span{animation:none}}

/* Soft page transition for navigation and language changes. */
#app{transition:opacity .72s cubic-bezier(.4,0,.2,1),transform .72s cubic-bezier(.4,0,.2,1);animation:page-enter .82s cubic-bezier(.22,1,.36,1) both}
html.page-leaving #app{opacity:0;transform:translateY(-8px)}
@keyframes page-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#app{animation:none;transition:none}}

/* Exact measurements taken from the Adobe Portfolio layout. */
.project-page{width:min(1000px,60vw)}
.page-title{font-size:25px;line-height:27px}
.project-page .page-title{margin-bottom:60px}
.module-row{gap:8px}
.case-museum .module-row{display:flex;align-items:flex-start;gap:8px}
.case-museum .module-row .project-media img{display:block;width:100%;height:auto;background:transparent}
.case-museum .module-row .project-media figcaption{min-height:76px}
@media(max-width:700px){.case-museum .module-row{display:flex;gap:8px}.case-museum .module-row .project-media img{width:100%;height:auto}.case-museum .module-row .project-media figcaption{min-height:76px;font-size:13px}}
.project-media{padding-bottom:40px}
.project-media figcaption{margin-top:0;font-size:14px;line-height:19px}
.project-copy{padding:20px 0 40px;font-size:14px;line-height:19px}
.copy{max-width:720px;font-size:14px;line-height:19px}
.about{gap:48px}
@media(max-width:700px){.project-page{width:88vw}.module-row{gap:8px}.project-media{padding-bottom:40px}.project-copy{padding:20px 0 40px}.copy{font-size:14px;line-height:19px}}

/* Buttons, links and contact modules matched to the Adobe reference. */
.text-link{text-decoration:underline;text-underline-offset:3px}
.cv-action{text-align:center;margin:0 auto 80px}
.site-button,.contact-form button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 24px;border:1px solid #777;background:transparent;color:#eee;font:14px/19px "PT Serif","Times New Roman",serif;cursor:pointer;transition:background .25s ease,color .25s ease,border-color .25s ease}
.site-button:hover,.contact-form button:hover{background:#eee;color:#212121;border-color:#eee}
.contact-page{width:min(1000px,60vw);margin-left:auto;margin-right:auto;text-align:center}
.contact-method{display:flex;flex-direction:column;align-items:center;margin:0 auto 20px}
.contact-method p{width:min(340px,42vw);margin:20px auto 0;color:#b9b9b9;font-size:14px;line-height:19px}
.social-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#e8e8e8;color:#212121;transition:transform .25s ease,background .25s ease}
.social-icon:hover{transform:translateY(-2px);background:#fff}
.social-icon svg{width:30px;height:24px;fill:currentColor}
.social-icon.telegram svg{width:25px;height:25px}
.contact-form{width:min(440px,50vw);margin:40px auto 100px;text-align:left;font-size:14px;line-height:19px}
.contact-form label{display:block;margin:0 0 5px;color:#eee}
.contact-form input,.contact-form textarea{display:block;width:100%;margin:0 0 30px;border:1px solid #474747;background:#212121;color:#eee;border-radius:0;font:18px/42px Arial,sans-serif;padding:1px 10px;outline:none}
.contact-form input{height:42px}.contact-form textarea{height:132px;line-height:24px;padding:10px;resize:vertical}
.contact-form input:focus,.contact-form textarea:focus{border-color:#aaa}
.contact-form button{font-size:18px;min-width:100px}
.form-status{min-height:38px;margin:16px 0 0;color:#aaa;font-size:13px;line-height:19px}
.back-to-top{position:fixed;right:40px;bottom:40px;z-index:5;display:grid;place-items:center;width:60px;height:60px;background:rgba(255,255,255,.2);font-size:24px;line-height:1;transition:background .25s ease}
.back-to-top:hover{background:rgba(255,255,255,.35)}
@media(max-width:700px){.contact-page{width:88vw}.contact-method p,.contact-form{width:88vw}.related-grid{grid-template-columns:1fr 1fr}.back-to-top{width:48px;height:48px;right:16px;bottom:16px}}

/* Adobe Portfolio keeps the recommended project covers in one horizontal row. */
.related-grid{grid-template-columns:repeat(4,minmax(0,1fr))}

/* Slightly quieter body typography and clearer caption separation. */
.project-copy,.project-media figcaption,.copy,.resume-copy,.contact-method p,.form-status{font-size:13px;line-height:18px}
.project-media figcaption{margin-top:8px}
.hero p{font-size:16px;line-height:28px}
.card h2{font-size:14px;line-height:18px}
.card small{font-size:14px;line-height:18px}
.contact-form{font-size:13px;line-height:18px}
.contact-form input,.contact-form textarea{font-size:16px}
.video-module video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#111}

/* The Oblivion introduction wraps around the handcrafted cover and then
   continues at the full case width below it. */
.oblivion-intro-wrap{display:flow-root}
.oblivion-intro-wrap>.oblivion-cover{float:right;width:61.5%;margin-left:8px}
.oblivion-intro-wrap>.oblivion-cover figcaption{margin-top:2px;transform:translateY(-8px)}
.oblivion-intro-wrap>.project-copy{display:block}
@media(max-width:700px){.oblivion-intro-wrap>.oblivion-cover{float:none;width:100%;margin-left:0}}

/* English pages use the same grotesque as the top navigation. */
html[lang="en"] *,html[lang="en"] button,html[lang="en"] input,html[lang="en"] textarea,html[lang="en"] select{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}

/* Lighter, tighter About heading to match the Adobe Portfolio reference. */
main:has(> .page-title + .about) > .page-title{font-weight:300;margin-bottom:48px}

/* Russian body copy: one step larger and brighter for comfortable reading. */
html[lang="ru"] .copy,
html[lang="ru"] .project-copy,
html[lang="ru"] .resume-copy,
html[lang="ru"] .contact-method p,
html[lang="ru"] .form-status{font-size:14px;line-height:20px;color:#c4c4c4}
html[lang="ru"] .project-copy p{margin-bottom:20px}

/* Project covers use the same square crop as the Adobe Portfolio grid. */
.cover-placeholder{overflow:hidden}
.cover-placeholder img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}

/* Bring the photographed books closer to the visual scale of Shum and Mut. */
.card-oblivion .cover-placeholder img{transform:scale(1.48)}
.card-requiem .cover-placeholder img{transform:scale(1.52)}

/* Adobe Portfolio uses horizontal rectangular project thumbnails. */
.cover-placeholder{aspect-ratio:4/3}
.card-side-projects .cover-placeholder{background:#000}
.card-side-projects .cover-placeholder img{object-fit:contain;transform:scale(.82)}

/* Match the Requiem book scale to the A–Z artist book cover. */
.card-requiem .cover-placeholder img{transform:scale(1.22)}

/* Balance the photographed book sizes across the project grid. */
.card-oblivion .cover-placeholder img{transform:scale(1.25)}
.card-shum-and-mut .cover-placeholder{background:#e7e7e7}
.card-shum-and-mut .cover-placeholder img{transform:scale(.90)}
.card-requiem .cover-placeholder img{transform:scale(1.10)}
.card-az-book .cover-placeholder img{transform:scale(1.08)}

/* Final cover framing: full Shum and Mut book, helmet centered vertically. */
.card-shum-and-mut .cover-placeholder{background:transparent}
.card-shum-and-mut .cover-placeholder img{transform:none;object-fit:cover}
.card-helmet .cover-placeholder img{object-position:50% 58%}

/* Final thumbnail focal adjustments. */
.card-degree-show .cover-placeholder img{transform:scale(1.08)}
.card-helmet .cover-placeholder img{object-position:50% 63%}

/* Additional focal adjustment requested after visual review. */
.card-degree-show .cover-placeholder img{transform:scale(1.15)}
.card-helmet .cover-placeholder img{object-position:50% 68%}

/* About title uses the same weight as case-study titles. */
main:has(> .page-title + .about) > .page-title{font-weight:400}

/* Explicit bold weight for the About page heading. */
main:has(> .page-title + .about) > .page-title{font-weight:700}
