
*{box-sizing:border-box}html{min-height:100%;background:#000;color:#fff}body{min-height:100vh;background-color:#000;margin:0;font:500 14px/1.25 Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}header{height:50px;position:fixed;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 15px;background:#000;z-index:10}nav{display:flex;gap:28px;align-items:center}a,button{color:inherit;text-decoration:none;font:inherit}button{background:none;border:0;padding:0}header{font-weight:700}nav a,nav button{font-style:normal;cursor:pointer}nav button:focus-visible,nav a:focus-visible,.name:focus-visible{outline:1px solid #fff;outline-offset:5px}.header-right{display:flex;align-items:center;gap:28px}.language{display:flex;align-items:center;gap:7px;white-space:nowrap}.language button{font-weight:700;color:#777;cursor:pointer}.language button[aria-pressed="true"]{color:#fff}.language span{color:#777}.language button:focus-visible{outline:1px solid #fff;outline-offset:5px}.name{white-space:nowrap}main{padding:73px 15px 30px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.column{display:flex;flex-direction:column;gap:15px}.asset-slot{margin:0;position:relative;aspect-ratio:1.5;background:#080808;border:1px solid #181818;display:flex;align-items:center;justify-content:center}.asset-slot.tall{aspect-ratio:.9}.asset-slot.square{aspect-ratio:1}.asset-slot.short{aspect-ratio:1.9}.slot-label{text-align:center;color:#767676;font-size:14px;line-height:1.5; padding:16px}.slot-label small{display:block;color:#444;font-size:12px;margin-top:5px}@media(max-width:900px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){header{position:sticky;height:auto;flex-wrap:wrap;padding:16px 12px;gap:16px}nav{gap:clamp(12px,3vw,24px);flex-wrap:wrap;order:2;width:100%}.header-right{order:1;width:100%;justify-content:flex-end;gap:24px}main{padding:12px 12px 24px}.grid{gap:12px}.column{gap:12px}.slot-label{font-size:12px;padding:10px}.slot-label small{font-size:12px}}
html[lang="ru"]{background:#E8E8EA;color:#111}html[lang="ru"] body{background-color:#E8E8EA}html[lang="ru"] header{background:#E8E8EA}html[lang="ru"] .asset-slot{background:#E8E8EA;border-color:#D9D9DC}html[lang="ru"] .slot-label{color:#555}html[lang="ru"] .slot-label small{color:#68686D}html[lang="ru"] .language button{color:#74747A}html[lang="ru"] .language button[aria-pressed="true"]{color:#111}html[lang="ru"] .language span{color:#74747A}html[lang="ru"] :is(nav button,nav a,.name,.language button):focus-visible{outline-color:#111}@media(prefers-reduced-motion:no-preference){.asset-slot{transition:background-color .25s ease,color .25s ease,border-color .25s ease}}
/* Paint the full viewport on body; avoid animating the root canvas in Safari. */
/* Reserve the vertical track before a project opens, including older Safari.
   The portfolio has one vertical page scroll, with no horizontal canvas. */
html{overflow-y:scroll;overflow-x:hidden;scrollbar-gutter:stable;-webkit-text-size-adjust:100%;text-size-adjust:100%}
@supports(min-height:100dvh){body{min-height:100dvh}}
/* Transparent, backdrop-reactive navigation in both languages. */
header,html[lang="ru"] header{background:transparent;color:#fff;mix-blend-mode:difference}
header{transition:opacity .16s ease}
header.is-obscured{opacity:0;pointer-events:none;transition:none}
/* Only keyboard-visible focus reveals the menu; pointer focus must not pin it. */
header.is-obscured:has(:focus-visible){opacity:1;pointer-events:auto;background:#000;color:#fff;mix-blend-mode:normal}
html[lang="ru"] header.is-obscured:has(:focus-visible){background:#E8E8EA;color:#111}
html[lang="ru"] header.is-obscured:has(:focus-visible) :is(nav button,nav a,.name,.language button):focus-visible{outline-color:#111}
@media(prefers-reduced-motion:reduce){header{transition:none}}
.language button,html[lang="ru"] .language button{color:#888}
.language button[aria-pressed="true"],html[lang="ru"] .language button[aria-pressed="true"]{color:var(--header-action-color,#fff)}
.language span,html[lang="ru"] .language span{color:#888}
html[lang="ru"] :is(nav button,nav a,.name,.language button):focus-visible{outline-color:#fff}
.header-right{gap:20px}.language{gap:4px;font-size:11px;line-height:1}.language button,.language button[aria-pressed="true"],html[lang="ru"] .language button{font-weight:400}.language button{min-height:24px;display:inline-flex;align-items:center}.language span{font-weight:400;font-size:10px}.name{letter-spacing:.02em}
/* Mobile: four navigation rows and an independent identity/language column. */
.language .language-toggle{display:none}
@media(max-width:760px){
 header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:0 12px;padding:16px 12px}
 nav{display:grid;grid-template-columns:1fr;grid-auto-rows:28px;justify-content:start;order:0;width:auto;min-width:0;gap:0;font-size:14px}
 nav a{display:inline-flex;align-items:center;justify-self:start;min-height:28px;white-space:nowrap}
 .header-right{display:grid;grid-template-columns:1fr;grid-template-rows:28px 28px;order:0;width:auto;justify-self:end;align-self:start;justify-items:end;gap:0}
 .header-right .name{display:inline-flex;align-items:center;grid-row:1;min-height:28px;font-size:14px;letter-spacing:0}
 .header-right .language{grid-row:2;align-self:center;font-size:11px}
 .language > [data-language],.language > span{display:none}
 .language .language-toggle{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;width:max-content;min-width:0;min-height:28px;padding:0 0 0 4px;background:transparent;border-radius:0;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;cursor:pointer;touch-action:manipulation}
 .language-toggle span,html[lang="ru"] .language-toggle span{font-size:11px;color:inherit}
 .language-toggle .is-active,html[lang="ru"] .language-toggle .is-active{color:var(--header-action-color,#fff)}
}
@media(max-width:360px){nav,.header-right .name,.not-found-page{font-size:13px}}
/* Uppercase interface in both languages. */
body{text-transform:uppercase}

[hidden]{display:none!important}
.about-page{text-transform:none;padding-top:31px;padding-bottom:40px}
.bio{font-size:clamp(28px,2.2vw,46px);font-weight:400;line-height:1.08;letter-spacing:-.025em}
.bio p{margin:0 0 27px}
.about-columns,.about-contacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}
.about-columns{margin-top:72px}.about-contacts{margin-top:72px}
.about-page h1,.about-page h2{font-size:14px;font-weight:700;line-height:1.3;margin:0 0 12px;text-transform:uppercase}
.about-page ul{list-style:none;padding:0;margin:0;font-size:clamp(24px,2.2vw,46px);line-height:1.08;letter-spacing:-.025em;font-weight:400}
.about-contacts a{font-size:clamp(22px,2.2vw,46px);font-weight:400;line-height:1.1;letter-spacing:-.025em;overflow-wrap:anywhere}
.about-contacts a:focus-visible{outline:1px solid currentColor;outline-offset:5px}
.about-contacts a span{white-space:nowrap}
@media(max-width:760px){.about-page{padding-top:26px}.about-columns,.about-contacts{grid-template-columns:1fr;gap:36px;margin-top:46px}.bio{font-size:28px;line-height:1.12}.bio p{margin-bottom:24px}.about-page ul{font-size:27px;line-height:1.12}.about-contacts a{font-size:clamp(20px,5.5vw,30px)}}
.collaboration-contact{display:block;margin-top:72px}@media(max-width:760px){.collaboration-contact{margin-top:46px}}

/* Project index shares the four-column rhythm of the visual archive. */
.projects-page{padding-top:0;overflow-anchor:none}
.project-entry{border-top:1px solid #333}
.project-entry:last-child{border-bottom:1px solid #333}
.project-row{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;align-items:start;text-align:left;cursor:pointer;padding:10px 0;font-size:14px;font-weight:700;line-height:1.25;text-transform:none}
.project-row>span{min-width:0;overflow-wrap:anywhere}
.project-row .project-meta{display:flex;justify-content:space-between;gap:15px}
.project-year{white-space:nowrap}

.project-row:focus-visible{outline:1px solid currentColor;outline-offset:4px}
.project-panel{padding:0}
.project-panel-content{min-width:0;padding:20px 0 28px;contain:layout style}
.project-mobile-details{display:none;text-transform:none}
.project-preview{position:fixed;z-index:5;pointer-events:none;visibility:hidden;opacity:0}
.project-preview :is(img,video){display:block;width:auto;height:auto;max-width:100%;max-height:min(var(--preview-max-height,300px),300px,38vh);object-fit:contain;background:#000}
html[lang="ru"] .project-preview :is(img,video){background:#E8E8EA}
.project-entry.is-preview .project-preview.is-ready{visibility:visible;opacity:1}
.project-entry.is-open .project-preview{visibility:hidden;opacity:0;transition:none}
@media(max-width:760px),(hover:none),(pointer:coarse){.project-preview{display:none}}
@media(prefers-reduced-motion:reduce){.project-preview{transition:none;transform:none}.project-entry.is-preview .project-preview.is-ready{transition:none}}
.project-gallery{position:relative;background:#F2F1ED;color:#171717;display:flex;align-items:center;justify-content:center;overflow:hidden;text-transform:none}
.project-entry.is-open .project-panel-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 15px;align-items:start;padding-bottom:12px}
.project-entry.is-open .project-gallery-wrap{grid-column:2;grid-row:1;width:100%;min-width:0}
.project-entry.is-open .project-gallery{width:100%;height:auto;min-height:0;aspect-ratio:1.5}
.slide-number{font-size:clamp(48px,8vw,132px);font-weight:400;line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.gallery-controls{display:flex;align-items:center;justify-content:space-between;margin-top:0;text-transform:none}
.gallery-control{cursor:pointer;min-height:24px;font-size:14px;line-height:1.25;font-weight:700;background:transparent;border-radius:0;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}
.gallery-control:focus-visible{outline:1px solid currentColor;outline-offset:4px}
.project-description{grid-column:1;grid-row:1;min-width:0;overflow-wrap:anywhere;padding-top:0;text-transform:none}
.project-description p{font-size:14px;line-height:1.3;font-weight:500;margin:0}
html[lang="ru"] .project-entry{border-color:#C7C7CB}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Gallery taps navigate slides; clipped status text must not become a
   selectable invisible line in iOS. Keep the live region available to AT. */
.project-gallery,.project-gallery .gallery-image,.project-gallery .gallery-status{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.project-gallery .gallery-status{top:0;left:0;clip-path:inset(50%);pointer-events:none}
@media(max-width:760px){
 .project-row{font-size:16px;line-height:1.35;padding:14px 0;gap:16px;grid-template-columns:minmax(0,1fr) max-content;align-items:baseline}
 .project-row>.project-category,.project-row>.project-services,.project-row .project-status{display:none}
 .project-row .project-meta{display:block;text-align:right}
 .project-panel-content{padding:8px 0 24px}
 .project-entry.is-open .project-panel-content{grid-template-columns:minmax(0,1fr);gap:20px}
 .project-mobile-details{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;grid-column:1;grid-row:auto;font-size:16px;line-height:1.4;font-weight:500;opacity:.5;overflow-wrap:anywhere}
 .project-mobile-category{text-align:right}
 .project-entry.is-open .project-gallery-wrap{grid-column:1;grid-row:auto}
 /* One frame per project; the stable viewport cap avoids toolbar-scroll jumps. */
 .project-entry.is-open .project-gallery{height:auto;min-height:0;aspect-ratio:var(--project-gallery-ratio,1.5);max-height:60vh;max-height:60svh}
 .project-description{grid-column:1;grid-row:auto;padding-top:0}
 .project-description p{font-size:16px;line-height:1.5}
 .gallery-control{font-size:16px;line-height:1.35;min-height:44px}
}


/* Images supplied by the CMS preserve the approved gallery and grid. */
#visuals{align-items:start}#visuals .column{min-width:0}
/* The desktop menu spans the first Visuals column, with room for long labels. */
@media(width > 900px){
 :root{--visuals-column-gap:15px}
 #visuals{column-gap:var(--visuals-column-gap)}
 header>nav{
  width:calc((100% - 3 * var(--visuals-column-gap)) / 4);
  min-width:max-content;
  gap:8px;
  justify-content:space-between;
  white-space:nowrap;
 }
}
.project-gallery .gallery-image{display:block;width:100%;height:100%;object-fit:contain}
/* Opaque page-colored backing clears pixels outside the fitted image. */
.project-gallery.has-media{background:#000}
html[lang="ru"] .project-gallery.has-media{background:#E8E8EA}
.project-gallery.has-media>.gallery-image{background:inherit}
.project-entry.is-open .project-gallery .gallery-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
/* The whole gallery frame accepts left/right clicks when it has several slides. */
@media(hover:hover) and (pointer:fine){.project-entry.is-open .project-gallery.is-navigable{cursor:pointer}}
.project-description p{white-space:pre-line}
.asset-slot.media-slot{border:0;background:transparent}
.media-slot :is(img,video){display:block;width:100%;height:100%;object-fit:contain}
.media-slot.natural{aspect-ratio:auto}.media-slot.natural :is(img,video){height:auto}
.media-slot.wide{aspect-ratio:1.9}
.bio p{white-space:pre-line}.about-contacts .contact-value{font-size:clamp(22px,2.2vw,46px);font-weight:400;line-height:1.1;letter-spacing:-.025em;overflow-wrap:anywhere}
body.admin-bar header{top:32px}@media(max-width:760px){body.admin-bar header{top:0}}

/* Linked visuals reveal project information without shifting the desktop grid. */
.visual-link{display:block;width:100%;position:relative;text-transform:none}
.visual-caption{position:absolute;inset:auto 0 0;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:8px 10px;font-size:14px;font-weight:700;line-height:1.25;color:#fff;background:transparent;opacity:0;pointer-events:none}
.visual-name{min-width:0;overflow-wrap:anywhere}.visual-year{flex-shrink:0;white-space:nowrap}
.visual-link:hover .visual-caption,.visual-link:focus-visible .visual-caption{opacity:1}
.visual-link:focus-visible{outline:1px solid currentColor;outline-offset:4px}
#visuals .has-hover-image{overflow:hidden;--visual-hover-fade:.42s;--visual-hover-delay:.08s}
#visuals .visual-hover-image{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:contain;background:#000;pointer-events:none;opacity:0;transition:opacity var(--visual-hover-fade) ease}
html[lang="ru"] #visuals .visual-hover-image{background:#E8E8EA}
#visuals .is-hover-active .visual-hover-image{opacity:1;transition-delay:var(--visual-hover-delay)}
/* Keep the base during the crossfade, then stop painting its edge underneath.
   Opacity preserves its layout; on exit it returns before the overlay fades. */
#visuals .is-hover-active img:not(.visual-hover-image){opacity:0;transition:opacity 0s linear calc(var(--visual-hover-fade) + var(--visual-hover-delay))}
#visuals .has-hover-image .visual-caption{z-index:2}
#visuals .has-hover-image .visual-link:focus-visible{outline-offset:-3px}
@media(prefers-reduced-motion:reduce){#visuals .has-hover-image{--visual-hover-fade:0s;--visual-hover-delay:0s}}
@media(prefers-reduced-motion:no-preference){.visual-caption{transition:opacity .15s ease}}
@media(max-width:760px),(hover:none),(pointer:coarse){.visual-caption{font-size:12px;opacity:1}}

/* Shared footer stays below the content and reaches the bottom on short pages. */
body{display:flex;flex-direction:column}
main{flex:1 0 auto;min-width:0}
.site-footer{flex-shrink:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:16px 15px 15px;font-size:14px;font-weight:700;line-height:1.25;text-transform:uppercase}
.footer-item{min-width:0;width:fit-content;max-width:100%;justify-self:start;align-self:start;overflow-wrap:anywhere;text-align:left}
.footer-item:nth-child(3n+2){justify-self:center;text-align:center}
.footer-item:nth-child(3n){justify-self:end;text-align:right}

.site-footer a:focus-visible{outline:1px solid currentColor;outline-offset:4px}
@media(max-width:760px){.site-footer{grid-template-columns:1fr;gap:12px;padding:16px 12px 12px;font-size:14px}.site-footer .footer-item{justify-self:start;text-align:left}}

.project-entry.is-open .project-gallery video.gallery-image[controls]{pointer-events:auto}
.project-gallery:focus-visible{outline:1px solid currentColor;outline-offset:4px}
.media-slot video{max-width:100%}

/* Visuals → project: a separate theme-colored layer avoids root-canvas repaint effects. */
.project-transfer{position:fixed;inset:0;z-index:100000;pointer-events:none;overflow:hidden}
.transfer-shade{position:absolute;inset:0;background:#000;opacity:0}
html[lang="ru"] .transfer-shade{background:#E8E8EA}
.transfer-carrier{position:absolute;overflow:hidden;pointer-events:none;transform-origin:0 0;will-change:transform}
.transfer-carrier :is(img,video){display:block;width:100%;height:100%;object-fit:contain}
.transfer-target{visibility:hidden}

/* Credits stay beside the tallest fitted project frame, independent of the
   selected slide. Slider controls remain in the lower row. */
.project-entry.is-open .project-gallery-wrap{grid-row:1 / span 2}
.gallery-controls{grid-column:2;grid-row:3;align-self:end}
.project-credits{grid-column:1;grid-row:2;align-self:end;display:flex;flex-direction:column;gap:4px;font-size:14px;line-height:1.25;font-weight:500;text-transform:none;padding-bottom:0;margin-bottom:var(--credit-media-inset,0px);overflow-wrap:anywhere}
@media(max-width:760px){
 .project-entry.is-open .project-gallery-wrap{grid-row:auto}
 .project-entry.is-open .project-gallery .gallery-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
 .gallery-controls{grid-column:1;grid-row:auto;order:0;margin-top:0}
 .project-credits{grid-column:1;grid-row:auto;order:0;padding-bottom:0;margin-bottom:0;font-size:14px;line-height:1.5}
}

/* Text controls soften on hover; Visuals captions retain full white. */
/* Header glyphs repaint through color, avoiding nested opacity animation
   inside the backdrop-blended header. No entry delay or forced text layer. */
header{--header-action-color:#fff;--header-hover-color:#999;--header-muted-hover:#525252}
html[lang="ru"] header.is-obscured:has(:focus-visible){--header-action-color:#111;--header-hover-color:#68686A;--header-muted-hover:#AEAEAF}
header :is(nav a,nav button,.language button,.name){opacity:1}
/* Footer links match the header's immediate 90 ms color response. */
.site-footer{--footer-hover-color:#999}
html[lang="ru"] .site-footer{--footer-hover-color:#68686A}
.site-footer a{opacity:1}
/* Project labels match the header/footer response without fading the row layer. */
.project-row{--project-hover-color:#999;opacity:1}
html[lang="ru"] .project-row{--project-hover-color:#68686A}
@media(prefers-reduced-motion:no-preference){
 header :is(nav a,nav button,.language button,.name),.site-footer a,.project-row{transition:color .09s ease-out;transition-delay:0s}
 :is(.gallery-control,a.contact-value:not(.footer-item)){transition:opacity .22s ease}
}
@media(hover:hover) and (pointer:fine){
 .site-footer a:hover{color:var(--footer-hover-color)}
 .project-row:hover{color:var(--project-hover-color)}
 html header :is(nav a,nav button,.name):hover{color:var(--header-hover-color)}
 html header .language button:hover{color:var(--header-muted-hover)}
 html header .language button[aria-pressed="true"]:hover{color:var(--header-hover-color)}
 :is(.gallery-control,a.contact-value:not(.footer-item)):hover{opacity:.6}
}
.site-footer a:focus-visible{color:var(--footer-hover-color)}
.project-row:focus-visible{color:var(--project-hover-color)}
html header :is(nav a,nav button,.name):focus-visible{color:var(--header-hover-color)}
html header .language button:focus-visible{color:var(--header-muted-hover)}
html header .language button[aria-pressed="true"]:focus-visible{color:var(--header-hover-color)}
:is(.gallery-control,a.contact-value:not(.footer-item)):focus-visible{opacity:.6}
@media(prefers-reduced-motion:reduce){
 header :is(nav a,nav button,.language button,.name),.site-footer a,.project-row{transition:none}
 :is(.gallery-control,a.contact-value:not(.footer-item)){transition:none}
}

.is-not-found{display:grid;place-items:center}
.not-found-page{text-align:center;font-weight:700;padding:32px 0}
.not-found-page h1{margin:0;font:inherit}
.not-found-page a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px}
@media(hover:hover) and (pointer:fine){.not-found-page a:hover{opacity:.65}}
.not-found-page a:focus-visible{outline:1px solid currentColor;outline-offset:3px}
